blob: 7f9f20fa7083459b9d3cad7f714b6d6140e1ac7f [file] [log] [blame]
Dan Gohman7b634842015-08-24 18:44:37 +00001; RUN: llc < %s -asm-verbose=false \
2; RUN: -fast-isel -fast-isel-abort=1 -verify-machineinstrs \
3; RUN: | FileCheck %s
4
Dan Gohman0c6f5ac2016-01-07 03:19:23 +00005target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
Dan Gohman7b634842015-08-24 18:44:37 +00006target triple = "wasm32-unknown-unknown"
7
8; This tests very minimal fast-isel functionality.
9
Dan Gohmane51c0582015-10-06 00:27:55 +000010; CHECK-LABEL: immediate_f32:
Dan Gohman700515f2015-11-23 21:55:57 +000011; CHECK: f32.const $push{{[0-9]+}}=, 0x1.4p1{{$}}
Dan Gohman7b634842015-08-24 18:44:37 +000012define float @immediate_f32() {
13 ret float 2.5
14}
15
Dan Gohmane51c0582015-10-06 00:27:55 +000016; CHECK-LABEL: immediate_f64:
Dan Gohman700515f2015-11-23 21:55:57 +000017; CHECK: f64.const $push{{[0-9]+}}=, 0x1.4p1{{$}}
Dan Gohman7b634842015-08-24 18:44:37 +000018define double @immediate_f64() {
19 ret double 2.5
20}