summaryrefslogtreecommitdiff
path: root/test/torture-s/20001203-2.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/20001203-2.c.s')
-rw-r--r--test/torture-s/20001203-2.c.s117
1 files changed, 65 insertions, 52 deletions
diff --git a/test/torture-s/20001203-2.c.s b/test/torture-s/20001203-2.c.s
index e9d7c61f2..ae98ec6f2 100644
--- a/test/torture-s/20001203-2.c.s
+++ b/test/torture-s/20001203-2.c.s
@@ -10,66 +10,79 @@ create_array_type: # @create_array_type
.local i32, i32, i32, i32, i32, i32
# BB#0: # %entry
block
- i32.const $push27=, 0
- i32.eq $push28=, $0, $pop27
- br_if $pop28, 0 # 0: down to label0
+ i32.const $push49=, 0
+ i32.eq $push50=, $0, $pop49
+ br_if $pop50, 0 # 0: down to label0
# BB#1: # %if.end
- i32.load $push1=, 0($1)
- i32.const $push2=, 3
- i32.mul $push3=, $pop1, $pop2
- i32.store $discard=, 0($0), $pop3
- i32.const $push4=, 1
- i32.store16 $6=, 8($0), $pop4
- i32.load $1=, 4($0)
- i32.const $7=, 0
+ i32.load $push4=, 0($1)
+ i32.const $push5=, 3
+ i32.mul $push6=, $pop4, $pop5
+ i32.store $discard=, 0($0), $pop6
+ i32.const $push7=, 1
+ i32.store16 $discard=, 8($0):p2align=2, $pop7
+ i32.const $3=, 0
block
- i32.const $push29=, 0
- i32.eq $push30=, $1, $pop29
- br_if $pop30, 0 # 0: down to label1
+ i32.load $push0=, 4($0)
+ tee_local $push38=, $1=, $pop0
+ i32.const $push51=, 0
+ i32.eq $push52=, $pop38, $pop51
+ br_if $pop52, 0 # 0: down to label1
# BB#2: # %cond.true
- i32.const $push5=, 20
- i32.add $push6=, $1, $pop5
- i32.load $2=, 0($pop6)
- i32.const $7=, 16
- i32.add $4=, $1, $7
- i32.load $3=, 0($4)
block
- i32.sub $push7=, $2, $3
- i32.const $push8=, 15
- i32.le_s $push9=, $pop7, $pop8
- br_if $pop9, 0 # 0: down to label2
+ i32.const $push8=, 20
+ i32.add $push9=, $1, $pop8
+ i32.load $push1=, 0($pop9)
+ tee_local $push42=, $5=, $pop1
+ i32.const $push41=, 16
+ i32.add $push10=, $1, $pop41
+ tee_local $push40=, $2=, $pop10
+ i32.load $push2=, 0($pop40)
+ tee_local $push39=, $4=, $pop2
+ i32.sub $push11=, $pop42, $pop39
+ i32.const $push12=, 15
+ i32.le_s $push13=, $pop11, $pop12
+ br_if $pop13, 0 # 0: down to label2
# BB#3: # %if.end9
- i32.add $push0=, $3, $7
- i32.store $3=, 0($4), $pop0
- i32.const $push10=, 12
- i32.add $5=, $1, $pop10
- i32.load $7=, 0($5)
+ i32.const $push15=, 12
+ i32.add $push16=, $1, $pop15
+ tee_local $push45=, $6=, $pop16
+ i32.load $3=, 0($pop45)
block
- i32.ne $push11=, $3, $7
- br_if $pop11, 0 # 0: down to label3
+ i32.const $push44=, 16
+ i32.add $push3=, $4, $pop44
+ i32.store $push14=, 0($2), $pop3
+ tee_local $push43=, $4=, $pop14
+ i32.ne $push17=, $pop43, $3
+ br_if $pop17, 0 # 0: down to label3
# BB#4: # %if.then16
- i32.const $push12=, 28
- i32.add $push13=, $1, $pop12
- i32.store $discard=, 0($pop13), $6
+ i32.const $push18=, 28
+ i32.add $push19=, $1, $pop18
+ i32.const $push20=, 1
+ i32.store $discard=, 0($pop19), $pop20
.LBB0_5: # %if.end17
end_block # label3:
- i32.const $push14=, 24
- i32.add $push15=, $1, $pop14
- i32.load $6=, 0($pop15)
- i32.add $push16=, $6, $3
- i32.const $push17=, -1
- i32.xor $push18=, $6, $pop17
- i32.and $push19=, $pop16, $pop18
- i32.store $3=, 0($4), $pop19
- i32.const $push20=, 8
- i32.add $push21=, $1, $pop20
- i32.load $1=, 0($pop21)
- i32.sub $push22=, $3, $1
- i32.sub $push23=, $2, $1
- i32.gt_s $push24=, $pop22, $pop23
- i32.select $push25=, $pop24, $2, $3
- i32.store $push26=, 0($4), $pop25
- i32.store $discard=, 0($5), $pop26
+ i32.const $push28=, 16
+ i32.add $2=, $1, $pop28
+ i32.const $push21=, 24
+ i32.add $push22=, $1, $pop21
+ i32.load $push23=, 0($pop22)
+ tee_local $push48=, $7=, $pop23
+ i32.add $push24=, $pop48, $4
+ i32.const $push25=, -1
+ i32.xor $push26=, $7, $pop25
+ i32.and $push27=, $pop24, $pop26
+ i32.store $push29=, 0($2), $pop27
+ tee_local $push47=, $4=, $pop29
+ i32.const $push30=, 8
+ i32.add $push31=, $1, $pop30
+ i32.load $push32=, 0($pop31)
+ tee_local $push46=, $1=, $pop32
+ i32.sub $push33=, $pop47, $pop46
+ i32.sub $push34=, $5, $1
+ i32.gt_s $push35=, $pop33, $pop34
+ i32.select $push36=, $pop35, $5, $4
+ i32.store $push37=, 0($2), $pop36
+ i32.store $discard=, 0($6), $pop37
br 1 # 1: down to label1
.LBB0_6: # %if.then8
end_block # label2:
@@ -77,7 +90,7 @@ create_array_type: # @create_array_type
unreachable
.LBB0_7: # %cond.end
end_block # label1:
- i32.store $discard=, 12($0), $7
+ i32.store $discard=, 12($0), $3
return $0
.LBB0_8: # %if.then
end_block # label0: