summaryrefslogtreecommitdiff
path: root/test/torture-s/doloop-2.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/doloop-2.c.s')
-rw-r--r--test/torture-s/doloop-2.c.s38
1 files changed, 20 insertions, 18 deletions
diff --git a/test/torture-s/doloop-2.c.s b/test/torture-s/doloop-2.c.s
index 46c11abd6..7fed4750a 100644
--- a/test/torture-s/doloop-2.c.s
+++ b/test/torture-s/doloop-2.c.s
@@ -6,32 +6,34 @@
.type main,@function
main: # @main
.result i32
- .local i32, i32
+ .local i32
# BB#0: # %entry
i32.const $0=, 0
- copy_local $1=, $0
.LBB0_1: # %do.body
# =>This Inner Loop Header: Depth=1
loop # label0:
- i32.load $push0=, i($0)
- i32.const $push1=, 1
- i32.add $push2=, $pop0, $pop1
- i32.store $discard=, i($0), $pop2
- i32.const $push3=, -1
- i32.add $1=, $1, $pop3
- i32.const $push4=, 65535
- i32.and $push5=, $1, $pop4
- br_if $pop5, 0 # 0: up to label0
+ i32.const $push10=, 0
+ i32.const $push9=, 0
+ i32.load $push0=, i($pop9)
+ i32.const $push8=, 1
+ i32.add $push1=, $pop0, $pop8
+ i32.store $discard=, i($pop10), $pop1
+ i32.const $push7=, -1
+ i32.add $0=, $0, $pop7
+ i32.const $push6=, 65535
+ i32.and $push2=, $0, $pop6
+ br_if $pop2, 0 # 0: up to label0
# BB#2: # %do.end
end_loop # label1:
- i32.const $1=, 0
block
- i32.load $push6=, i($1)
- i32.const $push7=, 65536
- i32.ne $push8=, $pop6, $pop7
- br_if $pop8, 0 # 0: down to label2
+ i32.const $push11=, 0
+ i32.load $push3=, i($pop11)
+ i32.const $push4=, 65536
+ i32.ne $push5=, $pop3, $pop4
+ br_if $pop5, 0 # 0: down to label2
# BB#3: # %if.end
- call exit@FUNCTION, $1
+ i32.const $push12=, 0
+ call exit@FUNCTION, $pop12
unreachable
.LBB0_4: # %if.then
end_block # label2:
@@ -45,7 +47,7 @@ main: # @main
.type i,@object
.section .bss.i,"aw",@nobits
.globl i
- .align 2
+ .p2align 2
i:
.int32 0 # 0x0
.size i, 4