|
|
@@ -3,56 +3,27 @@
|
|
|
;; Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
|
|
|
;;-------------------------------------------------------------------------------------------------------
|
|
|
(module
|
|
|
- (memory 1 1 (segment 1 "\00\00\e0\7f"))
|
|
|
-
|
|
|
- (func $f32.load (result f32) (f32.load offset=0 align=1 (i32.const 1)))
|
|
|
- (export "f32.load" $f32.load)
|
|
|
-
|
|
|
- (func $i32.load (result i32) (i32.load offset=0 align=2 (i32.const 1)))
|
|
|
- (export "i32.load" $i32.load)
|
|
|
-
|
|
|
- (func $f32.store (f32.store (i32.const 1) (f32.const 0x7fa00000)))
|
|
|
- (export "f32.store" $f32.store)
|
|
|
-
|
|
|
- (func $i32.store (i32.store (i32.const 1) (i32.const 0x7fa00000)))
|
|
|
- (export "i32.store" $i32.store)
|
|
|
-
|
|
|
- (func $reset (i32.store (i32.const 1) (i32.const 0)))
|
|
|
- (export "reset" $reset)
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- (func $f32.load1 (result f32) (f32.load offset=1 align=1 (i32.const 1)))
|
|
|
- (export "f32.load1" $f32.load1)
|
|
|
-
|
|
|
- (func $i32.load1 (result i32) (i32.load offset=1 align=2 (i32.const 1)))
|
|
|
- (export "i32.load1" $i32.load1)
|
|
|
-
|
|
|
- (func $f32.store1 (f32.store offset=1 (i32.const 1) (f32.const 0x7fa00000)))
|
|
|
- (export "f32.store1" $f32.store1)
|
|
|
-
|
|
|
- (func $i32.store1 (i32.store offset=1 (i32.const 1) (i32.const 0x7fa00000)))
|
|
|
- (export "i32.store1" $i32.store1)
|
|
|
-
|
|
|
- (func $reset1 (i32.store offset=1 (i32.const 1) (i32.const 0)))
|
|
|
- (export "reset1" $reset1)
|
|
|
-
|
|
|
-
|
|
|
- (func $f32.load2 (result f32) (f32.load offset=2 align=1 (i32.const 1)))
|
|
|
- (export "f32.load2" $f32.load2)
|
|
|
-
|
|
|
- (func $i32.load2 (result i32) (i32.load offset=2 align=2 (i32.const 1)))
|
|
|
- (export "i32.load2" $i32.load2)
|
|
|
-
|
|
|
- (func $f32.store2 (f32.store offset=2 (i32.const 1) (f32.const 0x7fa00000)))
|
|
|
- (export "f32.store2" $f32.store2)
|
|
|
-
|
|
|
- (func $i32.store2 (i32.store offset=2 (i32.const 1) (i32.const 0x7fa00000)))
|
|
|
- (export "i32.store2" $i32.store2)
|
|
|
-
|
|
|
- (func $reset2 (i32.store offset=2 (i32.const 1) (i32.const 0)))
|
|
|
- (export "reset2" $reset2)
|
|
|
-
|
|
|
+ (memory 1 1)
|
|
|
+ (data (i32.const 1) "\00\00\e0\7f")
|
|
|
+
|
|
|
+ (func (export "f32.load") (result f32) (f32.load offset=0 align=1 (i32.const 1)))
|
|
|
+ (func (export "i32.load") (result i32) (i32.load offset=0 align=2 (i32.const 1)))
|
|
|
+ (func (export "f32.store") (f32.store (i32.const 1) (f32.const 0x7fa00000)))
|
|
|
+ (func (export "i32.store") (i32.store (i32.const 1) (i32.const 0x7fa00000)))
|
|
|
+ (func (export "reset") (i32.store (i32.const 1) (i32.const 0)))
|
|
|
+
|
|
|
+
|
|
|
+ (func (export "f32.load1") (result f32) (f32.load offset=1 align=1 (i32.const 1)))
|
|
|
+ (func (export "i32.load1") (result i32) (i32.load offset=1 align=2 (i32.const 1)))
|
|
|
+ (func (export "f32.store1") (f32.store offset=1 (i32.const 1) (f32.const 0x7fa00000)))
|
|
|
+ (func (export "i32.store1") (i32.store offset=1 (i32.const 1) (i32.const 0x7fa00000)))
|
|
|
+ (func (export "reset1") (i32.store offset=1 (i32.const 1) (i32.const 0)))
|
|
|
+
|
|
|
+ (func (export "f32.load2") (result f32) (f32.load offset=2 align=1 (i32.const 1)))
|
|
|
+ (func (export "i32.load2") (result i32) (i32.load offset=2 align=2 (i32.const 1)))
|
|
|
+ (func (export "f32.store2") (f32.store offset=2 (i32.const 1) (f32.const 0x7fa00000)))
|
|
|
+ (func (export "i32.store2") (i32.store offset=2 (i32.const 1) (i32.const 0x7fa00000)))
|
|
|
+ (func (export "reset2") (i32.store offset=2 (i32.const 1) (i32.const 0)))
|
|
|
)
|
|
|
|
|
|
|
|
|
@@ -69,4 +40,4 @@
|
|
|
;;(assert_return (invoke "f32.load") (f32.const 0.0))
|
|
|
;;(invoke "i32.store")
|
|
|
;;(assert_return (invoke "i32.load") (i32.const 0x7fa00000))
|
|
|
-;;(assert_return (invoke "f32.load") (f32.const nan:0x200000))
|
|
|
+;;(assert_return (invoke "f32.load") (f32.const nan:0x200000))
|