diff options
Diffstat (limited to 'test/llvm_autogenerated/signext-zeroext.s')
-rw-r--r-- | test/llvm_autogenerated/signext-zeroext.s | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/test/llvm_autogenerated/signext-zeroext.s b/test/llvm_autogenerated/signext-zeroext.s new file mode 100644 index 000000000..966b02387 --- /dev/null +++ b/test/llvm_autogenerated/signext-zeroext.s @@ -0,0 +1,56 @@ + .text + .file "/s/llvm/llvm/test/CodeGen/WebAssembly/signext-zeroext.ll" + .globl z2s_func + .type z2s_func,@function +z2s_func: + .param i32 + .result i32 + .local i32 + i32.const $1=, 24 + i32.shl $push0=, $0, $1 + i32.shr_s $push1=, $pop0, $1 + return $pop1 +func_end0: + .size z2s_func, func_end0-z2s_func + + .globl s2z_func + .type s2z_func,@function +s2z_func: + .param i32 + .result i32 + i32.const $push0=, 255 + i32.and $push1=, $0, $pop0 + return $pop1 +func_end1: + .size s2z_func, func_end1-s2z_func + + .globl z2s_call + .type z2s_call,@function +z2s_call: + .param i32 + .result i32 + i32.const $push0=, 255 + i32.and $push1=, $0, $pop0 + i32.call $push2=, z2s_func, $pop1 + return $pop2 +func_end2: + .size z2s_call, func_end2-z2s_call + + .globl s2z_call + .type s2z_call,@function +s2z_call: + .param i32 + .result i32 + .local i32 + i32.const $1=, 24 + i32.shl $push0=, $0, $1 + i32.shr_s $push1=, $pop0, $1 + i32.call $push2=, s2z_func, $pop1 + i32.shl $push3=, $pop2, $1 + i32.shr_s $push4=, $pop3, $1 + return $pop4 +func_end3: + .size s2z_call, func_end3-s2z_call + + + .section ".note.GNU-stack","",@progbits |