summaryrefslogtreecommitdiff
path: root/test/torture-s/20051215-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/20051215-1.c.s')
-rw-r--r--test/torture-s/20051215-1.c.s46
1 files changed, 24 insertions, 22 deletions
diff --git a/test/torture-s/20051215-1.c.s b/test/torture-s/20051215-1.c.s
index ba8d81b14..12a6fa272 100644
--- a/test/torture-s/20051215-1.c.s
+++ b/test/torture-s/20051215-1.c.s
@@ -7,43 +7,45 @@
foo: # @foo
.param i32, i32, i32
.result i32
- .local i32, i32, i32, i32, i32
+ .local i32, i32, i32
# BB#0: # %entry
- i32.const $7=, 0
- i32.const $3=, 1
+ i32.const $5=, 0
block
- i32.lt_s $push0=, $1, $3
+ i32.const $push6=, 1
+ i32.lt_s $push0=, $1, $pop6
br_if $pop0, 0 # 0: down to label0
# BB#1: # %for.body.lr.ph
+ i32.const $3=, 0
+ i32.const $4=, 0
i32.const $5=, 0
- copy_local $6=, $5
- copy_local $7=, $5
.LBB0_2: # %for.body
# =>This Inner Loop Header: Depth=1
loop # label1:
block
- i32.const $push6=, 0
- i32.eq $push7=, $2, $pop6
- br_if $pop7, 0 # 0: down to label3
+ i32.const $push10=, 0
+ i32.eq $push11=, $2, $pop10
+ br_if $pop11, 0 # 0: down to label3
# BB#3: # %if.then
# in Loop: Header=BB0_2 Depth=1
i32.load $push1=, 0($2)
- i32.mul $6=, $pop1, $5
+ i32.mul $4=, $pop1, $3
.LBB0_4: # %if.end
# in Loop: Header=BB0_2 Depth=1
end_block # label3:
- i32.const $4=, 0
- i32.gt_s $push2=, $0, $4
- i32.mul $push3=, $6, $0
- i32.select $push4=, $pop2, $pop3, $4
- i32.add $7=, $7, $pop4
- i32.add $5=, $5, $3
- i32.ne $push5=, $1, $5
+ i32.const $push9=, 0
+ i32.gt_s $push2=, $0, $pop9
+ i32.mul $push3=, $4, $0
+ i32.const $push8=, 0
+ i32.select $push4=, $pop2, $pop3, $pop8
+ i32.add $5=, $5, $pop4
+ i32.const $push7=, 1
+ i32.add $3=, $3, $pop7
+ i32.ne $push5=, $1, $3
br_if $pop5, 0 # 0: up to label1
.LBB0_5: # %for.end6
end_loop # label2:
end_block # label0:
- return $7
+ return $5
.endfunc
.Lfunc_end0:
.size foo, .Lfunc_end0-foo
@@ -54,16 +56,16 @@ foo: # @foo
.type main,@function
main: # @main
.result i32
- .local i32
# BB#0: # %entry
- i32.const $0=, 0
block
i32.const $push1=, 3
i32.const $push0=, 2
- i32.call $push2=, foo@FUNCTION, $pop1, $pop0, $0
+ i32.const $push3=, 0
+ i32.call $push2=, foo@FUNCTION, $pop1, $pop0, $pop3
br_if $pop2, 0 # 0: down to label4
# BB#1: # %if.end
- return $0
+ i32.const $push4=, 0
+ return $pop4
.LBB1_2: # %if.then
end_block # label4:
call abort@FUNCTION