diff options
Diffstat (limited to 'test/llvm_autogenerated/phi.s')
-rw-r--r-- | test/llvm_autogenerated/phi.s | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/llvm_autogenerated/phi.s b/test/llvm_autogenerated/phi.s new file mode 100644 index 000000000..150336118 --- /dev/null +++ b/test/llvm_autogenerated/phi.s @@ -0,0 +1,43 @@ + .text + .file "/s/llvm/llvm/test/CodeGen/WebAssembly/phi.ll" + .globl test0 + .type test0,@function +test0: + .param i32 + .result i32 + block BB0_2 + i32.const $push0=, -1 + i32.gt_s $push1=, $0, $pop0 + br_if $pop1, BB0_2 + i32.const $push2=, 3 + i32.div_s $0=, $0, $pop2 +BB0_2: + return $0 +func_end0: + .size test0, func_end0-test0 + + .globl test1 + .type test1,@function +test1: + .param i32 + .result i32 + .local i32, i32, i32, i32, i32 + i32.const $2=, 1 + i32.const $3=, 0 + copy_local $4=, $2 + copy_local $5=, $3 +BB1_1: + loop BB1_2 + copy_local $1=, $4 + copy_local $4=, $3 + i32.add $5=, $5, $2 + copy_local $3=, $1 + i32.lt_s $push0=, $5, $0 + br_if $pop0, BB1_1 +BB1_2: + return $4 +func_end1: + .size test1, func_end1-test1 + + + .section ".note.GNU-stack","",@progbits |