summaryrefslogtreecommitdiff
path: root/test/torture-s/pr57281.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/pr57281.c.s')
-rw-r--r--test/torture-s/pr57281.c.s86
1 files changed, 49 insertions, 37 deletions
diff --git a/test/torture-s/pr57281.c.s b/test/torture-s/pr57281.c.s
index ae9a69c7b..53db424fa 100644
--- a/test/torture-s/pr57281.c.s
+++ b/test/torture-s/pr57281.c.s
@@ -7,15 +7,18 @@
foo: # @foo
.param i32
.result i32
- .local i32, i32
+ .local i32
# BB#0: # %entry
- i32.const $1=, 0
- i32.load $2=, b($1)
- i32.load $push1=, g($1)
- i64.extend_s/i32 $push0=, $2
- i64.store $discard=, 0($pop1), $pop0
- i32.select $push2=, $0, $1, $2
- return $pop2
+ i32.const $push0=, 0
+ i32.load $push3=, g($pop0)
+ i32.const $push7=, 0
+ i32.load $push1=, b($pop7)
+ tee_local $push6=, $1=, $pop1
+ i64.extend_s/i32 $push2=, $pop6
+ i64.store $discard=, 0($pop3), $pop2
+ i32.const $push5=, 0
+ i32.select $push4=, $0, $pop5, $1
+ return $pop4
.endfunc
.Lfunc_end0:
.size foo, .Lfunc_end0-foo
@@ -26,38 +29,47 @@ foo: # @foo
.type main,@function
main: # @main
.result i32
- .local i32, i32, i32, i32, i32, i32, i32
+ .local i32, i32, i32, i32, i32
# BB#0: # %entry
- i32.const $3=, 0
- i32.const $4=, -20
block
- i32.load $push0=, b($3)
- i32.eq $push1=, $pop0, $4
+ i32.const $push11=, 0
+ i32.load $push0=, b($pop11)
+ i32.const $push10=, -20
+ i32.eq $push1=, $pop0, $pop10
br_if $pop1, 0 # 0: down to label0
# BB#1: # %for.body.lr.ph
- i32.load $0=, a($3)
- i32.load $1=, e($3)
- i32.load $2=, g($3)
+ i32.const $push14=, 0
+ i32.load $0=, a($pop14)
+ i32.const $push13=, 0
+ i32.load $1=, e($pop13)
+ i32.const $push12=, 0
+ i32.load $2=, g($pop12)
.LBB1_2: # %for.body
# =>This Inner Loop Header: Depth=1
loop # label1:
- i64.load $discard=, f($3)
- i32.store $5=, 0($1), $3
- i32.load $6=, b($5)
- i64.extend_s/i32 $push2=, $6
- i64.store $discard=, 0($2), $pop2
- i32.select $push3=, $0, $5, $6
- i32.store $discard=, 0($1), $pop3
- i32.load $push4=, b($5)
- i32.const $push5=, -1
- i32.add $push6=, $pop4, $pop5
- i32.store $push7=, b($5), $pop6
- i32.ne $push8=, $pop7, $4
- br_if $pop8, 0 # 0: up to label1
+ i32.const $push20=, 0
+ i64.load $discard=, f($pop20)
+ i32.const $push19=, 0
+ i32.store $push2=, 0($1), $pop19
+ tee_local $push18=, $4=, $pop2
+ i32.load $push3=, b($pop18)
+ tee_local $push17=, $3=, $pop3
+ i64.extend_s/i32 $push4=, $pop17
+ i64.store $discard=, 0($2), $pop4
+ i32.select $push5=, $0, $4, $3
+ i32.store $discard=, 0($1), $pop5
+ i32.load $push6=, b($4)
+ i32.const $push16=, -1
+ i32.add $push7=, $pop6, $pop16
+ i32.store $push8=, b($4), $pop7
+ i32.const $push15=, -20
+ i32.ne $push9=, $pop8, $pop15
+ br_if $pop9, 0 # 0: up to label1
.LBB1_3: # %for.end
end_loop # label2:
end_block # label0:
- return $3
+ i32.const $push21=, 0
+ return $pop21
.endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main
@@ -66,7 +78,7 @@ main: # @main
.type a,@object
.section .data.a,"aw",@progbits
.globl a
- .align 2
+ .p2align 2
a:
.int32 1 # 0x1
.size a, 4
@@ -75,7 +87,7 @@ a:
.type d,@object
.section .bss.d,"aw",@nobits
.globl d
- .align 2
+ .p2align 2
d:
.int32 0 # 0x0
.size d, 4
@@ -84,7 +96,7 @@ d:
.type e,@object
.section .data.e,"aw",@progbits
.globl e
- .align 2
+ .p2align 2
e:
.int32 d
.size e, 4
@@ -93,7 +105,7 @@ e:
.type c,@object
.section .bss.c,"aw",@nobits
.globl c
- .align 3
+ .p2align 3
c:
.int64 0 # 0x0
.size c, 8
@@ -102,7 +114,7 @@ c:
.type g,@object
.section .data.g,"aw",@progbits
.globl g
- .align 2
+ .p2align 2
g:
.int32 c
.size g, 4
@@ -111,7 +123,7 @@ g:
.type b,@object
.section .bss.b,"aw",@nobits
.globl b
- .align 2
+ .p2align 2
b:
.int32 0 # 0x0
.size b, 4
@@ -120,7 +132,7 @@ b:
.type f,@object
.section .bss.f,"aw",@nobits
.globl f
- .align 3
+ .p2align 3
f:
.int64 0 # 0x0
.size f, 8