From 1ff97c6de3d8dcd67f85433d1142ade65c9f2360 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 11 Dec 2015 13:31:35 -0500 Subject: add wip .s testcase --- test/dot_s/basics.wast | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 test/dot_s/basics.wast (limited to 'test') diff --git a/test/dot_s/basics.wast b/test/dot_s/basics.wast new file mode 100644 index 000000000..a9bbf0557 --- /dev/null +++ b/test/dot_s/basics.wast @@ -0,0 +1,47 @@ +(module + (memory 0 4294967295) + (func $0 (param $$0 i32) (param $$1 i32) (result i32) + (block $fake_return_waka123 + (block + (call $puts + (none.const ?) + ) + (block $BB0_5 + (block $BB0_4 + (br_if + (i32.ne + (i32.sub + (i32.and + (i32.add + (i32.shr_u + (i32.shr_s + (i32.const 31) + (get_local $$0) + ) + (i32.const 30) + ) + (get_local $$0) + ) + (i32.const -4) + ) + (get_local $$0) + ) + (i32.const 1) + ) + $BB0_4 + ) + (set_local $$0 + (i32.add + (i32.const -12) + (get_local $$0) + ) + ) + ) + (br $fake_return_waka123 + (get_local $$0) + ) + ) + ) + ) + ) +) -- cgit v1.2.3