Test WebAssembly floating point constants.
f64.const does not yet work on 32-bit Intel.
This commit is contained in:
@@ -9,7 +9,11 @@ isa intel haswell
|
|||||||
|
|
||||||
; Constants.
|
; Constants.
|
||||||
|
|
||||||
; function %f32_const() -> f32
|
function %f32_const() -> f32 {
|
||||||
|
ebb0:
|
||||||
|
v1 = f32const 0x3.0
|
||||||
|
return v1
|
||||||
|
}
|
||||||
|
|
||||||
; Unary operations
|
; Unary operations
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,16 @@
|
|||||||
; Test basic code generation for f64 arithmetic WebAssembly instructions.
|
; Test basic code generation for f64 arithmetic WebAssembly instructions.
|
||||||
test compile
|
test compile
|
||||||
|
|
||||||
set is_64bit=0
|
|
||||||
isa intel haswell
|
|
||||||
|
|
||||||
set is_64bit=1
|
set is_64bit=1
|
||||||
isa intel haswell
|
isa intel haswell
|
||||||
|
|
||||||
; Constants.
|
; Constants.
|
||||||
|
|
||||||
; function %f64_const() -> f64
|
function %f64_const() -> f64 {
|
||||||
|
ebb0:
|
||||||
|
v1 = f64const 0x3.0
|
||||||
|
return v1
|
||||||
|
}
|
||||||
|
|
||||||
; Unary operations
|
; Unary operations
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user