summaryrefslogtreecommitdiff
path: root/test/torture-s/pr49712.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/pr49712.c.s')
-rw-r--r--test/torture-s/pr49712.c.s73
1 files changed, 41 insertions, 32 deletions
diff --git a/test/torture-s/pr49712.c.s b/test/torture-s/pr49712.c.s
index cb4c695b2..3157fcd92 100644
--- a/test/torture-s/pr49712.c.s
+++ b/test/torture-s/pr49712.c.s
@@ -18,20 +18,23 @@ foo: # @foo
.type bar,@function
bar: # @bar
.result i32
- .local i32
# BB#0: # %entry
- i32.const $0=, 0
block
- i32.load $push0=, d($0)
- i32.gt_s $push1=, $pop0, $0
+ i32.const $push5=, 0
+ i32.load $push0=, d($pop5)
+ i32.const $push4=, 0
+ i32.gt_s $push1=, $pop0, $pop4
br_if $pop1, 0 # 0: down to label0
# BB#1: # %for.cond4.preheader.preheader
- i32.store $push2=, e($0), $0
+ i32.const $push7=, 0
+ i32.const $push6=, 0
+ i32.store $push2=, e($pop7), $pop6
i32.const $push3=, 1
i32.store $discard=, d($pop2), $pop3
.LBB1_2: # %for.end9
end_block # label0:
- return $0
+ i32.const $push8=, 0
+ return $pop8
.endfunc
.Lfunc_end1:
.size bar, .Lfunc_end1-bar
@@ -42,39 +45,45 @@ bar: # @bar
.type main,@function
main: # @main
.result i32
- .local i32, i32, i32
+ .local i32
# BB#0: # %entry
- i32.const $2=, 0
- i32.store $0=, b($2), $2
block
- i32.load $push0=, c($0)
- i32.const $push4=, 0
- i32.eq $push5=, $pop0, $pop4
- br_if $pop5, 0 # 0: down to label1
+ i32.const $push0=, 0
+ i32.const $push9=, 0
+ i32.store $push1=, b($pop0), $pop9
+ tee_local $push8=, $0=, $pop1
+ i32.load $push2=, c($pop8)
+ i32.const $push15=, 0
+ i32.eq $push16=, $pop2, $pop15
+ br_if $pop16, 0 # 0: down to label1
# BB#1: # %while.body.preheader
- i32.const $1=, 1
- i32.load $push1=, d($0)
- i32.lt_s $2=, $pop1, $1
+ i32.load $push3=, d($0)
+ i32.const $push10=, 1
+ i32.lt_s $0=, $pop3, $pop10
.LBB2_2: # %while.body
# =>This Inner Loop Header: Depth=1
loop # label2:
- i32.and $push2=, $2, $1
- i32.const $push6=, 0
- i32.eq $push7=, $pop2, $pop6
- br_if $pop7, 0 # 0: up to label2
+ i32.const $push11=, 1
+ i32.and $push4=, $0, $pop11
+ i32.const $push17=, 0
+ i32.eq $push18=, $pop4, $pop17
+ br_if $pop18, 0 # 0: up to label2
# BB#3: # %for.cond4.preheader.preheader.i
# in Loop: Header=BB2_2 Depth=1
- i32.store $2=, a($0), $0
- i32.store $discard=, e($2), $2
- i32.store $discard=, d($2), $1
+ i32.const $push5=, 0
+ i32.const $push14=, 0
+ i32.store $push6=, a($pop5), $pop14
+ tee_local $push13=, $0=, $pop6
+ i32.store $discard=, e($pop13), $0
+ i32.const $push12=, 1
+ i32.store $discard=, d($0), $pop12
br 0 # 0: up to label2
.LBB2_4: # %for.inc.1
end_loop # label3:
end_block # label1:
- i32.const $2=, 0
- i32.const $push3=, 2
- i32.store $discard=, b($2), $pop3
- return $2
+ i32.const $push7=, 2
+ i32.store $discard=, b($0), $pop7
+ return $0
.endfunc
.Lfunc_end2:
.size main, .Lfunc_end2-main
@@ -83,7 +92,7 @@ main: # @main
.type d,@object
.section .bss.d,"aw",@nobits
.globl d
- .align 2
+ .p2align 2
d:
.int32 0 # 0x0
.size d, 4
@@ -92,7 +101,7 @@ d:
.type e,@object
.section .bss.e,"aw",@nobits
.globl e
- .align 2
+ .p2align 2
e:
.int32 0 # 0x0
.size e, 4
@@ -101,7 +110,7 @@ e:
.type b,@object
.section .bss.b,"aw",@nobits
.globl b
- .align 2
+ .p2align 2
b:
.int32 0 # 0x0
.size b, 4
@@ -110,7 +119,7 @@ b:
.type c,@object
.section .bss.c,"aw",@nobits
.globl c
- .align 2
+ .p2align 2
c:
.int32 0 # 0x0
.size c, 4
@@ -119,7 +128,7 @@ c:
.type a,@object
.section .bss.a,"aw",@nobits
.globl a
- .align 2
+ .p2align 2
a:
.skip 8
.size a, 8