diff options
Diffstat (limited to 'test/torture-s/dbra-1.c.s')
-rw-r--r-- | test/torture-s/dbra-1.c.s | 215 |
1 files changed, 113 insertions, 102 deletions
diff --git a/test/torture-s/dbra-1.c.s b/test/torture-s/dbra-1.c.s index a91609977..7cad94d18 100644 --- a/test/torture-s/dbra-1.c.s +++ b/test/torture-s/dbra-1.c.s @@ -11,47 +11,56 @@ f1: # @f1 # BB#0: # %entry i32.const $1=, 0 block - i32.const $push11=, 0 - i32.eq $push12=, $0, $pop11 - br_if $pop12, 0 # 0: down to label0 + i32.const $push21=, 0 + i32.eq $push22=, $0, $pop21 + br_if $pop22, 0 # 0: down to label0 # BB#1: # %for.inc i32.const $1=, 1 - i32.eq $push0=, $0, $1 + i32.const $push12=, 1 + i32.eq $push0=, $0, $pop12 br_if $pop0, 0 # 0: down to label0 # BB#2: # %for.inc.1 i32.const $1=, 2 - i32.eq $push1=, $0, $1 + i32.const $push13=, 2 + i32.eq $push1=, $0, $pop13 br_if $pop1, 0 # 0: down to label0 # BB#3: # %for.inc.2 i32.const $1=, 3 - i32.eq $push2=, $0, $1 + i32.const $push14=, 3 + i32.eq $push2=, $0, $pop14 br_if $pop2, 0 # 0: down to label0 # BB#4: # %for.inc.3 i32.const $1=, 4 - i32.eq $push3=, $0, $1 + i32.const $push15=, 4 + i32.eq $push3=, $0, $pop15 br_if $pop3, 0 # 0: down to label0 # BB#5: # %for.inc.4 i32.const $1=, 5 - i32.eq $push4=, $0, $1 + i32.const $push16=, 5 + i32.eq $push4=, $0, $pop16 br_if $pop4, 0 # 0: down to label0 # BB#6: # %for.inc.5 i32.const $1=, 6 - i32.eq $push5=, $0, $1 + i32.const $push17=, 6 + i32.eq $push5=, $0, $pop17 br_if $pop5, 0 # 0: down to label0 # BB#7: # %for.inc.6 i32.const $1=, 7 - i32.eq $push6=, $0, $1 + i32.const $push18=, 7 + i32.eq $push6=, $0, $pop18 br_if $pop6, 0 # 0: down to label0 # BB#8: # %for.inc.7 i32.const $1=, 8 - i32.eq $push7=, $0, $1 + i32.const $push19=, 8 + i32.eq $push7=, $0, $pop19 br_if $pop7, 0 # 0: down to label0 # BB#9: # %for.inc.8 - i32.const $1=, 9 - i32.eq $push8=, $0, $1 - i32.const $push9=, -1 - i32.select $push10=, $pop8, $1, $pop9 - return $pop10 + i32.const $push8=, 9 + i32.eq $push9=, $0, $pop8 + i32.const $push20=, 9 + i32.const $push10=, -1 + i32.select $push11=, $pop9, $pop20, $pop10 + return $pop11 .LBB0_10: # %cleanup end_block # label0: return $1 @@ -81,62 +90,63 @@ f2: # @f2 f3: # @f3 .param i32 .result i32 - .local i32, i32 + .local i32 # BB#0: # %entry - i32.const $1=, 1 - i32.const $2=, 0 + i32.const $1=, 0 block - i32.eq $push0=, $0, $1 - br_if $pop0, 0 # 0: down to label1 -# BB#1: # %for.inc - copy_local $2=, $1 - i32.const $1=, 2 - i32.eq $push1=, $0, $1 + i32.const $push0=, 1 + i32.eq $push1=, $0, $pop0 br_if $pop1, 0 # 0: down to label1 +# BB#1: # %for.inc + i32.const $1=, 1 + i32.const $push2=, 2 + i32.eq $push3=, $0, $pop2 + br_if $pop3, 0 # 0: down to label1 # BB#2: # %for.inc.1 - copy_local $2=, $1 - i32.const $1=, 3 - i32.eq $push2=, $0, $1 - br_if $pop2, 0 # 0: down to label1 + i32.const $1=, 2 + i32.const $push4=, 3 + i32.eq $push5=, $0, $pop4 + br_if $pop5, 0 # 0: down to label1 # BB#3: # %for.inc.2 - copy_local $2=, $1 - i32.const $1=, 4 - i32.eq $push3=, $0, $1 - br_if $pop3, 0 # 0: down to label1 + i32.const $1=, 3 + i32.const $push6=, 4 + i32.eq $push7=, $0, $pop6 + br_if $pop7, 0 # 0: down to label1 # BB#4: # %for.inc.3 - copy_local $2=, $1 - i32.const $1=, 5 - i32.eq $push4=, $0, $1 - br_if $pop4, 0 # 0: down to label1 + i32.const $1=, 4 + i32.const $push8=, 5 + i32.eq $push9=, $0, $pop8 + br_if $pop9, 0 # 0: down to label1 # BB#5: # %for.inc.4 - copy_local $2=, $1 - i32.const $1=, 6 - i32.eq $push5=, $0, $1 - br_if $pop5, 0 # 0: down to label1 + i32.const $1=, 5 + i32.const $push10=, 6 + i32.eq $push11=, $0, $pop10 + br_if $pop11, 0 # 0: down to label1 # BB#6: # %for.inc.5 - copy_local $2=, $1 - i32.const $1=, 7 - i32.eq $push6=, $0, $1 - br_if $pop6, 0 # 0: down to label1 + i32.const $1=, 6 + i32.const $push12=, 7 + i32.eq $push13=, $0, $pop12 + br_if $pop13, 0 # 0: down to label1 # BB#7: # %for.inc.6 - copy_local $2=, $1 - i32.const $1=, 8 - i32.eq $push7=, $0, $1 - br_if $pop7, 0 # 0: down to label1 + i32.const $1=, 7 + i32.const $push14=, 8 + i32.eq $push15=, $0, $pop14 + br_if $pop15, 0 # 0: down to label1 # BB#8: # %for.inc.7 - copy_local $2=, $1 - i32.const $1=, 9 - i32.eq $push8=, $0, $1 - br_if $pop8, 0 # 0: down to label1 + i32.const $1=, 8 + i32.const $push21=, 9 + i32.eq $push16=, $0, $pop21 + br_if $pop16, 0 # 0: down to label1 # BB#9: # %for.inc.8 - i32.const $push9=, 10 - i32.eq $push10=, $0, $pop9 - i32.const $push11=, -1 - i32.select $push12=, $pop10, $1, $pop11 - return $pop12 + i32.const $push17=, 10 + i32.eq $push18=, $0, $pop17 + i32.const $push22=, 9 + i32.const $push19=, -1 + i32.select $push20=, $pop18, $pop22, $pop19 + return $pop20 .LBB2_10: # %cleanup end_block # label1: - return $2 + return $1 .endfunc .Lfunc_end2: .size f3, .Lfunc_end2-f3 @@ -163,62 +173,63 @@ f4: # @f4 f5: # @f5 .param i32 .result i32 - .local i32, i32 + .local i32 # BB#0: # %entry - i32.const $1=, -1 - i32.const $2=, 0 + i32.const $1=, 0 block - i32.eq $push0=, $0, $1 - br_if $pop0, 0 # 0: down to label2 + i32.const $push0=, -1 + i32.eq $push1=, $0, $pop0 + br_if $pop1, 0 # 0: down to label2 # BB#1: # %for.inc - i32.const $2=, 1 - i32.const $push1=, -2 - i32.eq $push2=, $0, $pop1 - br_if $pop2, 0 # 0: down to label2 + i32.const $1=, 1 + i32.const $push2=, -2 + i32.eq $push3=, $0, $pop2 + br_if $pop3, 0 # 0: down to label2 # BB#2: # %for.inc.1 - i32.const $2=, 2 - i32.const $push3=, -3 - i32.eq $push4=, $0, $pop3 - br_if $pop4, 0 # 0: down to label2 + i32.const $1=, 2 + i32.const $push4=, -3 + i32.eq $push5=, $0, $pop4 + br_if $pop5, 0 # 0: down to label2 # BB#3: # %for.inc.2 - i32.const $2=, 3 - i32.const $push5=, -4 - i32.eq $push6=, $0, $pop5 - br_if $pop6, 0 # 0: down to label2 + i32.const $1=, 3 + i32.const $push6=, -4 + i32.eq $push7=, $0, $pop6 + br_if $pop7, 0 # 0: down to label2 # BB#4: # %for.inc.3 - i32.const $2=, 4 - i32.const $push7=, -5 - i32.eq $push8=, $0, $pop7 - br_if $pop8, 0 # 0: down to label2 + i32.const $1=, 4 + i32.const $push8=, -5 + i32.eq $push9=, $0, $pop8 + br_if $pop9, 0 # 0: down to label2 # BB#5: # %for.inc.4 - i32.const $2=, 5 - i32.const $push9=, -6 - i32.eq $push10=, $0, $pop9 - br_if $pop10, 0 # 0: down to label2 + i32.const $1=, 5 + i32.const $push10=, -6 + i32.eq $push11=, $0, $pop10 + br_if $pop11, 0 # 0: down to label2 # BB#6: # %for.inc.5 - i32.const $2=, 6 - i32.const $push11=, -7 - i32.eq $push12=, $0, $pop11 - br_if $pop12, 0 # 0: down to label2 + i32.const $1=, 6 + i32.const $push12=, -7 + i32.eq $push13=, $0, $pop12 + br_if $pop13, 0 # 0: down to label2 # BB#7: # %for.inc.6 - i32.const $2=, 7 - i32.const $push13=, -8 - i32.eq $push14=, $0, $pop13 - br_if $pop14, 0 # 0: down to label2 + i32.const $1=, 7 + i32.const $push14=, -8 + i32.eq $push15=, $0, $pop14 + br_if $pop15, 0 # 0: down to label2 # BB#8: # %for.inc.7 - i32.const $2=, 8 - i32.const $push15=, -9 - i32.eq $push16=, $0, $pop15 - br_if $pop16, 0 # 0: down to label2 + i32.const $1=, 8 + i32.const $push16=, -9 + i32.eq $push17=, $0, $pop16 + br_if $pop17, 0 # 0: down to label2 # BB#9: # %for.inc.8 - i32.const $push17=, -10 - i32.eq $push18=, $0, $pop17 - i32.const $push19=, 9 - i32.select $push20=, $pop18, $pop19, $1 - return $pop20 + i32.const $push18=, -10 + i32.eq $push19=, $0, $pop18 + i32.const $push21=, 9 + i32.const $push20=, -1 + i32.select $push22=, $pop19, $pop21, $pop20 + return $pop22 .LBB4_10: # %cleanup end_block # label2: - return $2 + return $1 .endfunc .Lfunc_end4: .size f5, .Lfunc_end4-f5 |