Add support for emitting code with a single return at the end. (#153)
This also enables testing of the wasmtests tests. This also updates for wabt updating to the official "wat" filename extension, as opposed to "wast".
This commit is contained in:
10
cranelift/wasmtests/return_at_end.wat
Normal file
10
cranelift/wasmtests/return_at_end.wat
Normal file
@@ -0,0 +1,10 @@
|
||||
(module
|
||||
(memory 1)
|
||||
(func $main (param i32)
|
||||
(if
|
||||
(get_local 0)
|
||||
(then (return))
|
||||
(else (unreachable))
|
||||
)
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user