diff options
Diffstat (limited to 'test/llvm_autogenerated/reg-stackify.s')
-rw-r--r-- | test/llvm_autogenerated/reg-stackify.s | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/test/llvm_autogenerated/reg-stackify.s b/test/llvm_autogenerated/reg-stackify.s new file mode 100644 index 000000000..ba37b4fe2 --- /dev/null +++ b/test/llvm_autogenerated/reg-stackify.s @@ -0,0 +1,92 @@ + .text + .file "/s/llvm/llvm/test/CodeGen/WebAssembly/reg-stackify.ll" + .globl no0 + .type no0,@function +no0: + .param i32, i32 + .result i32 + i32.load $1=, 0($1) + i32.const $push0=, 0 + i32.store $discard=, 0($0), $pop0 + return $1 +func_end0: + .size no0, func_end0-no0 + + .globl no1 + .type no1,@function +no1: + .param i32, i32 + .result i32 + i32.load $1=, 0($1) + i32.const $push0=, 0 + i32.store $discard=, 0($0), $pop0 + return $1 +func_end1: + .size no1, func_end1-no1 + + .globl yes0 + .type yes0,@function +yes0: + .param i32, i32 + .result i32 + i32.const $push1=, 0 + i32.store $discard=, 0($0), $pop1 + i32.load $push0=, 0($1) + return $pop0 +func_end2: + .size yes0, func_end2-yes0 + + .globl yes1 + .type yes1,@function +yes1: + .param i32 + .result i32 + i32.load $push0=, 0($0) + return $pop0 +func_end3: + .size yes1, func_end3-yes1 + + .globl stack_uses + .type stack_uses,@function +stack_uses: + .param i32, i32, i32, i32 + .result i32 + .local i32, i32 + i32.const $5=, 2 + i32.const $4=, 1 + block BB4_2 + i32.lt_s $push0=, $0, $4 + i32.lt_s $push1=, $1, $5 + i32.xor $push4=, $pop0, $pop1 + i32.lt_s $push2=, $2, $4 + i32.lt_s $push3=, $3, $5 + i32.xor $push5=, $pop2, $pop3 + i32.xor $push6=, $pop4, $pop5 + i32.ne $push7=, $pop6, $4 + br_if $pop7, BB4_2 + i32.const $push8=, 0 + return $pop8 +BB4_2: + return $4 +func_end4: + .size stack_uses, func_end4-stack_uses + + .globl multiple_uses + .type multiple_uses,@function +multiple_uses: + .param i32, i32, i32 + .local i32 + i32.load $3=, 0($2) + block BB5_3 + i32.ge_u $push0=, $3, $1 + br_if $pop0, BB5_3 + i32.lt_u $push1=, $3, $0 + br_if $pop1, BB5_3 + i32.store $discard=, 0($2), $3 +BB5_3: + return +func_end5: + .size multiple_uses, func_end5-multiple_uses + + + .section ".note.GNU-stack","",@progbits |