|
|
@@ -13,19 +13,19 @@
|
|
|
)
|
|
|
|
|
|
(assert_return (invoke "i32.load") (i32.const 0x7fa00000))
|
|
|
-(assert_return_arithmetic_nan (invoke "f32.load"))
|
|
|
+(assert_return (invoke "f32.load") (f32.const nan:0x200000))
|
|
|
(invoke "reset")
|
|
|
(assert_return (invoke "i32.load") (i32.const 0x0))
|
|
|
(assert_return (invoke "f32.load") (f32.const 0.0))
|
|
|
(invoke "f32.store")
|
|
|
;;(assert_return (invoke "i32.load") (i32.const 0x7fa00000))
|
|
|
-(assert_return_arithmetic_nan (invoke "f32.load"))
|
|
|
+(assert_return (invoke "f32.load") (f32.const nan:0x200000))
|
|
|
(invoke "reset")
|
|
|
(assert_return (invoke "i32.load") (i32.const 0x0))
|
|
|
(assert_return (invoke "f32.load") (f32.const 0.0))
|
|
|
(invoke "i32.store")
|
|
|
(assert_return (invoke "i32.load") (i32.const 0x7fa00000))
|
|
|
-(assert_return_arithmetic_nan (invoke "f32.load"))
|
|
|
+(assert_return (invoke "f32.load") (f32.const nan:0x200000))
|
|
|
|
|
|
(module
|
|
|
(memory (data "\00\00\00\00\00\00\f4\7f"))
|
|
|
@@ -38,19 +38,19 @@
|
|
|
)
|
|
|
|
|
|
(assert_return (invoke "i64.load") (i64.const 0x7ff4000000000000))
|
|
|
-(assert_return_arithmetic_nan (invoke "f64.load"))
|
|
|
+(assert_return (invoke "f64.load") (f64.const nan:0x4000000000000))
|
|
|
(invoke "reset")
|
|
|
(assert_return (invoke "i64.load") (i64.const 0x0))
|
|
|
(assert_return (invoke "f64.load") (f64.const 0.0))
|
|
|
(invoke "f64.store")
|
|
|
;;(assert_return (invoke "i64.load") (i64.const 0x7ff4000000000000))
|
|
|
-(assert_return_arithmetic_nan (invoke "f64.load"))
|
|
|
+(assert_return (invoke "f64.load") (f64.const nan:0x4000000000000))
|
|
|
(invoke "reset")
|
|
|
(assert_return (invoke "i64.load") (i64.const 0x0))
|
|
|
(assert_return (invoke "f64.load") (f64.const 0.0))
|
|
|
(invoke "i64.store")
|
|
|
(assert_return (invoke "i64.load") (i64.const 0x7ff4000000000000))
|
|
|
-(assert_return_arithmetic_nan (invoke "f64.load"))
|
|
|
+(assert_return (invoke "f64.load") (f64.const nan:0x4000000000000))
|
|
|
|
|
|
;; Test that unaligned load and store do not canonicalize NaNs.
|
|
|
|
|
|
@@ -65,19 +65,19 @@
|
|
|
)
|
|
|
|
|
|
(assert_return (invoke "i32.load") (i32.const 0x7fa00000))
|
|
|
-(assert_return_arithmetic_nan (invoke "f32.load"))
|
|
|
+(assert_return (invoke "f32.load") (f32.const nan:0x200000))
|
|
|
(invoke "reset")
|
|
|
(assert_return (invoke "i32.load") (i32.const 0x0))
|
|
|
(assert_return (invoke "f32.load") (f32.const 0.0))
|
|
|
(invoke "f32.store")
|
|
|
;;(assert_return (invoke "i32.load") (i32.const 0x7fa00000))
|
|
|
-(assert_return_arithmetic_nan (invoke "f32.load"))
|
|
|
+(assert_return (invoke "f32.load") (f32.const nan:0x200000))
|
|
|
(invoke "reset")
|
|
|
(assert_return (invoke "i32.load") (i32.const 0x0))
|
|
|
(assert_return (invoke "f32.load") (f32.const 0.0))
|
|
|
(invoke "i32.store")
|
|
|
(assert_return (invoke "i32.load") (i32.const 0x7fa00000))
|
|
|
-(assert_return_arithmetic_nan (invoke "f32.load"))
|
|
|
+(assert_return (invoke "f32.load") (f32.const nan:0x200000))
|
|
|
|
|
|
(module
|
|
|
(memory (data "\00\00\00\00\00\00\00\f4\7f"))
|
|
|
@@ -90,19 +90,19 @@
|
|
|
)
|
|
|
|
|
|
(assert_return (invoke "i64.load") (i64.const 0x7ff4000000000000))
|
|
|
-(assert_return_arithmetic_nan (invoke "f64.load"))
|
|
|
+(assert_return (invoke "f64.load") (f64.const nan:0x4000000000000))
|
|
|
(invoke "reset")
|
|
|
(assert_return (invoke "i64.load") (i64.const 0x0))
|
|
|
(assert_return (invoke "f64.load") (f64.const 0.0))
|
|
|
(invoke "f64.store")
|
|
|
;;(assert_return (invoke "i64.load") (i64.const 0x7ff4000000000000))
|
|
|
-(assert_return_arithmetic_nan (invoke "f64.load"))
|
|
|
+(assert_return (invoke "f64.load") (f64.const nan:0x4000000000000))
|
|
|
(invoke "reset")
|
|
|
(assert_return (invoke "i64.load") (i64.const 0x0))
|
|
|
(assert_return (invoke "f64.load") (f64.const 0.0))
|
|
|
(invoke "i64.store")
|
|
|
(assert_return (invoke "i64.load") (i64.const 0x7ff4000000000000))
|
|
|
-(assert_return_arithmetic_nan (invoke "f64.load"))
|
|
|
+(assert_return (invoke "f64.load") (f64.const nan:0x4000000000000))
|
|
|
|
|
|
;; Test that load and store do not canonicalize NaNs as some JS engines do.
|
|
|
|
|
|
@@ -117,19 +117,19 @@
|
|
|
)
|
|
|
|
|
|
(assert_return (invoke "i32.load") (i32.const 0x7fd00001))
|
|
|
-(assert_return_arithmetic_nan (invoke "f32.load"))
|
|
|
+(assert_return (invoke "f32.load") (f32.const nan:0x500001))
|
|
|
(invoke "reset")
|
|
|
(assert_return (invoke "i32.load") (i32.const 0x0))
|
|
|
(assert_return (invoke "f32.load") (f32.const 0.0))
|
|
|
(invoke "f32.store")
|
|
|
(assert_return (invoke "i32.load") (i32.const 0x7fd00001))
|
|
|
-(assert_return_arithmetic_nan (invoke "f32.load"))
|
|
|
+(assert_return (invoke "f32.load") (f32.const nan:0x500001))
|
|
|
(invoke "reset")
|
|
|
(assert_return (invoke "i32.load") (i32.const 0x0))
|
|
|
(assert_return (invoke "f32.load") (f32.const 0.0))
|
|
|
(invoke "i32.store")
|
|
|
(assert_return (invoke "i32.load") (i32.const 0x7fd00001))
|
|
|
-(assert_return_arithmetic_nan (invoke "f32.load"))
|
|
|
+(assert_return (invoke "f32.load") (f32.const nan:0x500001))
|
|
|
|
|
|
(module
|
|
|
(memory (data "\01\00\00\00\00\00\fc\7f"))
|
|
|
@@ -142,16 +142,16 @@
|
|
|
)
|
|
|
|
|
|
(assert_return (invoke "i64.load") (i64.const 0x7ffc000000000001))
|
|
|
-(assert_return_arithmetic_nan (invoke "f64.load"))
|
|
|
+(assert_return (invoke "f64.load") (f64.const nan:0xc000000000001))
|
|
|
(invoke "reset")
|
|
|
(assert_return (invoke "i64.load") (i64.const 0x0))
|
|
|
(assert_return (invoke "f64.load") (f64.const 0.0))
|
|
|
(invoke "f64.store")
|
|
|
(assert_return (invoke "i64.load") (i64.const 0x7ffc000000000001))
|
|
|
-(assert_return_arithmetic_nan (invoke "f64.load"))
|
|
|
+(assert_return (invoke "f64.load") (f64.const nan:0xc000000000001))
|
|
|
(invoke "reset")
|
|
|
(assert_return (invoke "i64.load") (i64.const 0x0))
|
|
|
(assert_return (invoke "f64.load") (f64.const 0.0))
|
|
|
(invoke "i64.store")
|
|
|
(assert_return (invoke "i64.load") (i64.const 0x7ffc000000000001))
|
|
|
-(assert_return_arithmetic_nan (invoke "f64.load"))
|
|
|
+(assert_return (invoke "f64.load") (f64.const nan:0xc000000000001))
|