diff options
Diffstat (limited to 'test/torture-s/loop-5.c.s')
-rw-r--r-- | test/torture-s/loop-5.c.s | 122 |
1 files changed, 69 insertions, 53 deletions
diff --git a/test/torture-s/loop-5.c.s b/test/torture-s/loop-5.c.s index 3e903d88c..ba4941acd 100644 --- a/test/torture-s/loop-5.c.s +++ b/test/torture-s/loop-5.c.s @@ -6,73 +6,89 @@ .type main,@function main: # @main .result i32 - .local i32, i64, i32, i32, i32, i32, i32, i32, i32, i64 + .local i64, i32, i32, i32 # BB#0: # %entry - i32.const $2=, 0 - i32.load $0=, t($2) - i32.const $3=, 4 block - i32.ge_s $push3=, $0, $3 - br_if $pop3, 0 # 0: down to label0 -# BB#1: # %ap.exit.i - i32.const $4=, 1 - i32.add $push0=, $0, $4 - i32.store $5=, t($2), $pop0 - i32.const $6=, 2 - i32.const $7=, a - i32.shl $push4=, $0, $6 - i32.add $push5=, $7, $pop4 - i32.store $discard=, 0($pop5), $2 - i32.gt_s $push6=, $0, $6 + i32.const $push37=, 0 + i32.load $push0=, t($pop37) + tee_local $push36=, $2=, $pop0 + i32.const $push5=, 4 + i32.ge_s $push6=, $pop36, $pop5 br_if $pop6, 0 # 0: down to label0 +# BB#1: # %ap.exit.i + i32.const $push41=, 2 + i32.shl $push8=, $2, $pop41 + i32.const $push40=, 0 + i32.store $discard=, a($pop8), $pop40 + i32.const $push39=, 0 + i32.const $push7=, 1 + i32.add $push1=, $2, $pop7 + i32.store $1=, t($pop39), $pop1 + i32.const $push38=, 2 + i32.gt_s $push9=, $2, $pop38 + br_if $pop9, 0 # 0: down to label0 # BB#2: # %ap.exit.1.i - i32.shl $push7=, $5, $6 - i32.add $push8=, $7, $pop7 - i32.const $push9=, 3 - i32.store $5=, 0($pop8), $pop9 - i32.add $push1=, $0, $6 - i32.store $8=, t($2), $pop1 - i32.gt_s $push10=, $8, $5 - br_if $pop10, 0 # 0: down to label0 -# BB#3: # %ap.exit.2.i - i32.shl $push11=, $8, $6 - i32.add $push12=, $7, $pop11 - i32.store $discard=, 0($pop12), $6 - i32.add $push2=, $0, $5 - i32.store $5=, t($2), $pop2 - i32.gt_s $push13=, $0, $2 + i32.const $push45=, 2 + i32.shl $push11=, $1, $pop45 + i32.const $push12=, 3 + i32.store $1=, a($pop11), $pop12 + i32.const $push44=, 0 + i32.const $push43=, 2 + i32.add $push2=, $2, $pop43 + i32.store $push10=, t($pop44), $pop2 + tee_local $push42=, $3=, $pop10 + i32.gt_s $push13=, $pop42, $1 br_if $pop13, 0 # 0: down to label0 +# BB#3: # %ap.exit.2.i + i32.const $push14=, 2 + i32.shl $push15=, $3, $pop14 + i32.const $push48=, 2 + i32.store $3=, a($pop15), $pop48 + i32.const $push47=, 0 + i32.add $push3=, $2, $1 + i32.store $1=, t($pop47), $pop3 + i32.const $push46=, 0 + i32.gt_s $push16=, $2, $pop46 + br_if $pop16, 0 # 0: down to label0 # BB#4: # %testit.exit - i32.shl $push15=, $5, $6 - i32.add $push16=, $7, $pop15 - i32.store $discard=, 0($pop16), $4 - i64.load $1=, a($2) + i32.shl $push20=, $1, $3 + i32.const $push21=, 1 + i32.store $discard=, a($pop20), $pop21 + i32.const $push19=, 0 + i64.load $0=, a($pop19):p2align=4 + i32.const $push49=, 0 + i32.const $push17=, 4 + i32.add $push18=, $2, $pop17 + i32.store $discard=, t($pop49), $pop18 block - i32.add $push14=, $0, $3 - i32.store $discard=, t($2), $pop14 - i32.wrap/i64 $push17=, $1 - br_if $pop17, 0 # 0: down to label1 + i32.wrap/i64 $push22=, $0 + br_if $pop22, 0 # 0: down to label1 # BB#5: # %if.end - i64.const $9=, -4294967296 block - i64.and $push18=, $1, $9 - i64.const $push19=, 12884901888 - i64.ne $push20=, $pop18, $pop19 - br_if $pop20, 0 # 0: down to label2 + i64.const $push23=, -4294967296 + i64.and $push24=, $0, $pop23 + i64.const $push25=, 12884901888 + i64.ne $push26=, $pop24, $pop25 + br_if $pop26, 0 # 0: down to label2 # BB#6: # %if.end3 - i64.load $1=, a+8($2) block - i32.wrap/i64 $push21=, $1 - i32.ne $push22=, $pop21, $6 - br_if $pop22, 0 # 0: down to label3 + i32.const $push27=, 0 + i64.load $push4=, a+8($pop27) + tee_local $push50=, $0=, $pop4 + i32.wrap/i64 $push28=, $pop50 + i32.const $push29=, 2 + i32.ne $push30=, $pop28, $pop29 + br_if $pop30, 0 # 0: down to label3 # BB#7: # %if.end6 block - i64.and $push23=, $1, $9 - i64.const $push24=, 4294967296 - i64.ne $push25=, $pop23, $pop24 - br_if $pop25, 0 # 0: down to label4 + i64.const $push31=, -4294967296 + i64.and $push32=, $0, $pop31 + i64.const $push33=, 4294967296 + i64.ne $push34=, $pop32, $pop33 + br_if $pop34, 0 # 0: down to label4 # BB#8: # %if.end9 - call exit@FUNCTION, $2 + i32.const $push35=, 0 + call exit@FUNCTION, $pop35 unreachable .LBB0_9: # %if.then8 end_block # label4: |