blob: fa1870f67502bc5acda99e4ec616ad0d6b938fc5 [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
5target datalayout = "e-p:32:32-i64:64-n32:64-S128"
6target 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:
11; CHECK: f32.const 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:
17; CHECK: f64.const 0x1.4p1{{$}}
Dan Gohman7b634842015-08-24 18:44:37 +000018define double @immediate_f64() {
19 ret double 2.5
20}