Dumped code from the wasm2cretonne repo
This commit is contained in:
BIN
lib/wasm2cretonne-util/filetests/arith.wasm
Normal file
BIN
lib/wasm2cretonne-util/filetests/arith.wasm
Normal file
Binary file not shown.
13
lib/wasm2cretonne-util/filetests/arith.wast
Normal file
13
lib/wasm2cretonne-util/filetests/arith.wast
Normal file
@@ -0,0 +1,13 @@
|
||||
(module
|
||||
(memory 1)
|
||||
(func $main (local i32)
|
||||
(set_local 0 (i32.sub (i32.const 4) (i32.const 4)))
|
||||
(if
|
||||
(get_local 0)
|
||||
(then unreachable)
|
||||
(else (drop (i32.mul (i32.const 6) (get_local 0))))
|
||||
)
|
||||
)
|
||||
(start $main)
|
||||
(data (i32.const 0) "abcdefgh")
|
||||
)
|
||||
BIN
lib/wasm2cretonne-util/filetests/call.wasm
Normal file
BIN
lib/wasm2cretonne-util/filetests/call.wasm
Normal file
Binary file not shown.
10
lib/wasm2cretonne-util/filetests/call.wast
Normal file
10
lib/wasm2cretonne-util/filetests/call.wast
Normal file
@@ -0,0 +1,10 @@
|
||||
(module
|
||||
(func $main (local i32)
|
||||
(set_local 0 (i32.const 0))
|
||||
(drop (call $inc))
|
||||
)
|
||||
(func $inc (result i32)
|
||||
(i32.const 1)
|
||||
)
|
||||
(start $main)
|
||||
)
|
||||
BIN
lib/wasm2cretonne-util/filetests/globals.wasm
Normal file
BIN
lib/wasm2cretonne-util/filetests/globals.wasm
Normal file
Binary file not shown.
8
lib/wasm2cretonne-util/filetests/globals.wast
Normal file
8
lib/wasm2cretonne-util/filetests/globals.wast
Normal file
@@ -0,0 +1,8 @@
|
||||
(module
|
||||
(global $x (mut i32) (i32.const 4))
|
||||
(memory 1)
|
||||
(func $main (local i32)
|
||||
(i32.store (i32.const 0) (get_global $x))
|
||||
)
|
||||
(start $main)
|
||||
)
|
||||
BIN
lib/wasm2cretonne-util/filetests/memory.wasm
Normal file
BIN
lib/wasm2cretonne-util/filetests/memory.wasm
Normal file
Binary file not shown.
11
lib/wasm2cretonne-util/filetests/memory.wast
Normal file
11
lib/wasm2cretonne-util/filetests/memory.wast
Normal file
@@ -0,0 +1,11 @@
|
||||
(module
|
||||
(memory 1)
|
||||
(func $main (local i32)
|
||||
(i32.store (i32.const 0) (i32.const 0x0))
|
||||
(if (i32.load (i32.const 0))
|
||||
(then (i32.store (i32.const 0) (i32.const 0xa)))
|
||||
(else (i32.store (i32.const 0) (i32.const 0xb))))
|
||||
)
|
||||
(start $main)
|
||||
(data (i32.const 0) "0000")
|
||||
)
|
||||
BIN
lib/wasm2cretonne-util/filetests/sample.wasm
Normal file
BIN
lib/wasm2cretonne-util/filetests/sample.wasm
Normal file
Binary file not shown.
Reference in New Issue
Block a user