summaryrefslogtreecommitdiff
path: root/test/llvm_autogenerated/signext-zeroext.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/llvm_autogenerated/signext-zeroext.wast')
-rw-r--r--test/llvm_autogenerated/signext-zeroext.wast80
1 files changed, 80 insertions, 0 deletions
diff --git a/test/llvm_autogenerated/signext-zeroext.wast b/test/llvm_autogenerated/signext-zeroext.wast
new file mode 100644
index 000000000..480223851
--- /dev/null
+++ b/test/llvm_autogenerated/signext-zeroext.wast
@@ -0,0 +1,80 @@
+(module
+ (memory 0 4294967295)
+ (export "z2s_func" $z2s_func)
+ (export "s2z_func" $s2z_func)
+ (export "z2s_call" $z2s_call)
+ (export "s2z_call" $s2z_call)
+ (func $z2s_func (param $$0 i32) (result i32)
+ (local $$1 i32)
+ (block $fake_return_waka123
+ (block
+ (set_local $$1
+ (i32.const 24)
+ )
+ (br $fake_return_waka123
+ (i32.shr_s
+ (i32.shl
+ (get_local $$0)
+ (get_local $$1)
+ )
+ (get_local $$1)
+ )
+ )
+ )
+ )
+ )
+ (func $s2z_func (param $$0 i32) (result i32)
+ (block $fake_return_waka123
+ (block
+ (br $fake_return_waka123
+ (i32.and
+ (get_local $$0)
+ (i32.const 255)
+ )
+ )
+ )
+ )
+ )
+ (func $z2s_call (param $$0 i32) (result i32)
+ (block $fake_return_waka123
+ (block
+ (br $fake_return_waka123
+ (call $z2s_func
+ (i32.and
+ (get_local $$0)
+ (i32.const 255)
+ )
+ )
+ )
+ )
+ )
+ )
+ (func $s2z_call (param $$0 i32) (result i32)
+ (local $$1 i32)
+ (block $fake_return_waka123
+ (block
+ (set_local $$1
+ (i32.const 24)
+ )
+ (br $fake_return_waka123
+ (i32.shr_s
+ (i32.shl
+ (call $s2z_func
+ (i32.shr_s
+ (i32.shl
+ (get_local $$0)
+ (get_local $$1)
+ )
+ (get_local $$1)
+ )
+ )
+ (get_local $$1)
+ )
+ (get_local $$1)
+ )
+ )
+ )
+ )
+ )
+)
+;; METADATA: { "asmConsts": {},"staticBump": 0 }