2015-08-25 02:44:37 +08:00
|
|
|
; RUN: llc < %s -asm-verbose=false \
|
|
|
|
; RUN: -fast-isel -fast-isel-abort=1 -verify-machineinstrs \
|
|
|
|
; RUN: | FileCheck %s
|
|
|
|
|
2016-01-07 11:19:23 +08:00
|
|
|
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
|
2015-08-25 02:44:37 +08:00
|
|
|
target triple = "wasm32-unknown-unknown"
|
|
|
|
|
|
|
|
; This tests very minimal fast-isel functionality.
|
|
|
|
|
2015-10-06 08:27:55 +08:00
|
|
|
; CHECK-LABEL: immediate_f32:
|
2015-11-24 05:55:57 +08:00
|
|
|
; CHECK: f32.const $push{{[0-9]+}}=, 0x1.4p1{{$}}
|
2015-08-25 02:44:37 +08:00
|
|
|
define float @immediate_f32() {
|
|
|
|
ret float 2.5
|
|
|
|
}
|
|
|
|
|
2015-10-06 08:27:55 +08:00
|
|
|
; CHECK-LABEL: immediate_f64:
|
2015-11-24 05:55:57 +08:00
|
|
|
; CHECK: f64.const $push{{[0-9]+}}=, 0x1.4p1{{$}}
|
2015-08-25 02:44:37 +08:00
|
|
|
define double @immediate_f64() {
|
|
|
|
ret double 2.5
|
|
|
|
}
|