summaryrefslogtreecommitdiff
path: root/test/torture-s/20051021-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/20051021-1.c.s')
-rw-r--r--test/torture-s/20051021-1.c.s51
1 files changed, 28 insertions, 23 deletions
diff --git a/test/torture-s/20051021-1.c.s b/test/torture-s/20051021-1.c.s
index cd6073afa..594a46f99 100644
--- a/test/torture-s/20051021-1.c.s
+++ b/test/torture-s/20051021-1.c.s
@@ -6,14 +6,15 @@
.type foo1,@function
foo1: # @foo1
.result i32
- .local i32
# BB#0: # %entry
- i32.const $0=, 0
- i32.load $push0=, count($0)
- i32.const $push1=, 1
- i32.add $push2=, $pop0, $pop1
- i32.store $discard=, count($0), $pop2
- return $0
+ i32.const $push0=, 0
+ i32.const $push5=, 0
+ i32.load $push1=, count($pop5)
+ i32.const $push2=, 1
+ i32.add $push3=, $pop1, $pop2
+ i32.store $discard=, count($pop0), $pop3
+ i32.const $push4=, 0
+ return $pop4
.endfunc
.Lfunc_end0:
.size foo1, .Lfunc_end0-foo1
@@ -24,14 +25,15 @@ foo1: # @foo1
.type foo2,@function
foo2: # @foo2
.result i32
- .local i32
# BB#0: # %entry
- i32.const $0=, 0
- i32.load $push0=, count($0)
- i32.const $push1=, 1
- i32.add $push2=, $pop0, $pop1
- i32.store $discard=, count($0), $pop2
- return $0
+ i32.const $push0=, 0
+ i32.const $push5=, 0
+ i32.load $push1=, count($pop5)
+ i32.const $push2=, 1
+ i32.add $push3=, $pop1, $pop2
+ i32.store $discard=, count($pop0), $pop3
+ i32.const $push4=, 0
+ return $pop4
.endfunc
.Lfunc_end1:
.size foo2, .Lfunc_end1-foo2
@@ -42,17 +44,20 @@ foo2: # @foo2
.type main,@function
main: # @main
.result i32
- .local i32, i32
+ .local i32
# BB#0: # %entry
- i32.const $0=, 0
- i32.load $1=, count($0)
+ i32.const $push5=, 0
+ i32.const $push4=, 0
+ i32.load $push0=, count($pop4)
+ tee_local $push3=, $0=, $pop0
+ i32.const $push1=, 2
+ i32.add $push2=, $pop3, $pop1
+ i32.store $discard=, count($pop5), $pop2
block
- i32.const $push0=, 2
- i32.add $push1=, $1, $pop0
- i32.store $discard=, count($0), $pop1
- br_if $1, 0 # 0: down to label0
+ br_if $0, 0 # 0: down to label0
# BB#1: # %if.end7
- return $0
+ i32.const $push6=, 0
+ return $pop6
.LBB2_2: # %if.then6
end_block # label0:
call abort@FUNCTION
@@ -65,7 +70,7 @@ main: # @main
.type count,@object
.section .bss.count,"aw",@nobits
.globl count
- .align 2
+ .p2align 2
count:
.int32 0 # 0x0
.size count, 4