Test WebAssembly floating point constants.

f64.const does not yet work on 32-bit Intel.
This commit is contained in:
Jakob Stoklund Olesen
2017-09-25 11:06:18 -07:00
parent fdb97da21b
commit ba1c50d6c1
2 changed files with 10 additions and 5 deletions

View File

@@ -9,7 +9,11 @@ isa intel haswell
; Constants.
; function %f32_const() -> f32
function %f32_const() -> f32 {
ebb0:
v1 = f32const 0x3.0
return v1
}
; Unary operations

View File

@@ -1,15 +1,16 @@
; Test basic code generation for f64 arithmetic WebAssembly instructions.
test compile
set is_64bit=0
isa intel haswell
set is_64bit=1
isa intel haswell
; Constants.
; function %f64_const() -> f64
function %f64_const() -> f64 {
ebb0:
v1 = f64const 0x3.0
return v1
}
; Unary operations