summaryrefslogtreecommitdiff
path: root/test/torture-s/pr15296.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/pr15296.c.s')
-rw-r--r--test/torture-s/pr15296.c.s206
1 files changed, 106 insertions, 100 deletions
diff --git a/test/torture-s/pr15296.c.s b/test/torture-s/pr15296.c.s
index 6dadfa5ee..43011e5ac 100644
--- a/test/torture-s/pr15296.c.s
+++ b/test/torture-s/pr15296.c.s
@@ -8,8 +8,8 @@ f: # @f
.param i32, i32, i32, i32, i32, i32
# BB#0: # %entry
block
- i32.ge_s $push1=, $3, $4
- br_if $pop1, 0 # 0: down to label0
+ i32.ge_s $push2=, $3, $4
+ br_if $pop2, 0 # 0: down to label0
.LBB0_1: # %l0
# =>This Inner Loop Header: Depth=1
loop # label1:
@@ -22,24 +22,24 @@ f: # @f
block
block
block
- i32.const $push12=, 0
- i32.eq $push13=, $3, $pop12
- br_if $pop13, 0 # 0: down to label6
+ i32.const $push14=, 0
+ i32.eq $push15=, $3, $pop14
+ br_if $pop15, 0 # 0: down to label6
# BB#3: # %if.end3
copy_local $4=, $5
br_if $5, 0 # 0: down to label6
# BB#4: # %if.end6
block
- i32.const $push3=, 4
- i32.add $push4=, $1, $pop3
+ i32.const $push4=, 4
+ i32.add $push5=, $1, $pop4
i32.load $push0=, 0($1)
- i32.load $push2=, 0($pop0)
- i32.store $push5=, 0($pop4), $pop2
- br_if $pop5, 0 # 0: down to label7
+ i32.load $push3=, 0($pop0)
+ i32.store $push6=, 0($pop5), $pop3
+ br_if $pop6, 0 # 0: down to label7
# BB#5: # %if.end12
- i32.const $push6=, 0
- i32.const $push7=, -1
- i32.store $discard=, 12($pop6), $pop7
+ i32.const $push7=, 0
+ i32.const $push8=, -1
+ i32.store $discard=, 12($pop7), $pop8
br 2 # 2: down to label5
.LBB0_6: # %if.then11
end_block # label7:
@@ -47,19 +47,20 @@ f: # @f
unreachable
.LBB0_7: # %l3
end_block # label6:
- i32.const $push8=, 4
- i32.add $push9=, $1, $pop8
- i32.store $discard=, 0($pop9), $4
- i32.const $push10=, 8
- i32.add $push11=, $1, $pop10
- i32.load $3=, 0($pop11)
- br_if $3, 2 # 2: down to label3
+ i32.const $push9=, 4
+ i32.add $push10=, $1, $pop9
+ i32.store $3=, 0($pop10), $4
+ i32.const $push11=, 8
+ i32.add $push12=, $1, $pop11
+ i32.load $push1=, 0($pop12)
+ tee_local $push13=, $1=, $pop1
+ br_if $pop13, 2 # 2: down to label3
# BB#8: # %if.end19
- i32.const $push14=, 0
- i32.eq $push15=, $4, $pop14
- br_if $pop15, 1 # 1: down to label4
+ i32.const $push16=, 0
+ i32.eq $push17=, $3, $pop16
+ br_if $pop17, 1 # 1: down to label4
# BB#9: # %if.end24
- i32.store $discard=, 8($4), $3
+ i32.store $discard=, 8($3), $1
.LBB0_10: # %l4
end_block # label5:
return
@@ -94,93 +95,98 @@ g: # @g
.type main,@function
main: # @main
.result i32
- .local i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32
+ .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32
# BB#0: # %entry
- i32.const $6=, __stack_pointer
- i32.load $6=, 0($6)
- i32.const $7=, 48
- i32.sub $16=, $6, $7
- i32.const $7=, __stack_pointer
- i32.store $16=, 0($7), $16
- i32.const $0=, 0
- i32.const $push2=, 16
+ i32.const $1=, __stack_pointer
+ i32.load $1=, 0($1)
+ i32.const $2=, 48
+ i32.sub $13=, $1, $2
+ i32.const $2=, __stack_pointer
+ i32.store $13=, 0($2), $13
+ i32.const $push5=, 16
+ i32.const $3=, 8
+ i32.add $3=, $13, $3
+ i32.add $push6=, $3, $pop5
+ i32.const $push0=, 0
+ i32.load $push7=, .Lmain.s+16($pop0)
+ i32.store $discard=, 0($pop6):p2align=3, $pop7
+ i32.const $push2=, 8
+ i32.const $4=, 32
+ i32.add $4=, $13, $4
+ i32.or $push3=, $4, $pop2
+ i32.const $push43=, 0
+ i64.load $push1=, .Lmain.uv+8($pop43)
+ i64.store $discard=, 0($pop3), $pop1
+ i32.const $push42=, 0
+ i64.load $push4=, .Lmain.uv($pop42):p2align=4
+ i64.store $discard=, 32($13):p2align=4, $pop4
+ i32.const $push41=, 8
+ i32.const $5=, 8
+ i32.add $5=, $13, $5
+ i32.add $push8=, $5, $pop41
+ tee_local $push40=, $0=, $pop8
+ i32.const $push39=, 0
+ i64.load $push9=, .Lmain.s+8($pop39):p2align=2
+ i64.store $discard=, 0($pop40), $pop9
+ i32.const $push38=, 0
+ i64.load $push10=, .Lmain.s($pop38):p2align=2
+ i64.store $discard=, 8($13), $pop10
+ i32.const $push37=, 0
+ i32.const $push14=, 20000
+ i32.const $push13=, 10000
+ i32.const $6=, 8
+ i32.add $6=, $13, $6
+ i32.const $7=, 32
+ i32.add $7=, $13, $7
+ call f@FUNCTION, $pop37, $6, $0, $pop14, $pop13, $7
+ i32.const $push11=, 4
i32.const $8=, 8
- i32.add $8=, $16, $8
- i32.add $3=, $8, $pop2
- i32.load $push3=, .Lmain.s+16($0)
- i32.store $discard=, 0($3), $pop3
- i32.const $4=, 4
- i32.const $1=, 8
+ i32.add $8=, $13, $8
+ i32.or $push12=, $8, $pop11
+ i32.load $push15=, 0($pop12)
i32.const $9=, 32
- i32.add $9=, $16, $9
- i32.or $2=, $9, $1
- i64.load $push0=, .Lmain.uv+8($0)
- i64.store $discard=, 0($2), $pop0
- i64.load $push1=, .Lmain.uv($0)
- i64.store $discard=, 32($16), $pop1
- i64.const $5=, 32
- i32.const $10=, 8
- i32.add $10=, $16, $10
- i32.add $1=, $10, $1
- i32.const $push4=, .Lmain.s+8
- i32.add $push5=, $pop4, $4
- i64.load32_u $push6=, 0($pop5)
- i64.shl $push7=, $pop6, $5
- i64.load32_u $push8=, .Lmain.s+8($0)
- i64.or $push9=, $pop7, $pop8
- i64.store $discard=, 0($1), $pop9
- i32.const $push10=, .Lmain.s
- i32.add $push11=, $pop10, $4
- i64.load32_u $push12=, 0($pop11)
- i64.shl $push13=, $pop12, $5
- i64.load32_u $push14=, .Lmain.s($0)
- i64.or $push15=, $pop13, $pop14
- i64.store $discard=, 8($16), $pop15
- i32.const $push17=, 20000
- i32.const $push16=, 10000
- i32.const $11=, 8
- i32.add $11=, $16, $11
- i32.const $12=, 32
- i32.add $12=, $16, $12
- call f@FUNCTION, $0, $11, $0, $pop17, $pop16, $12
- i32.const $13=, 8
- i32.add $13=, $16, $13
- i32.or $push18=, $13, $4
- i32.load $push19=, 0($pop18)
- i32.const $14=, 32
- i32.add $14=, $16, $14
+ i32.add $9=, $13, $9
block
- i32.ne $push20=, $pop19, $14
- br_if $pop20, 0 # 0: down to label8
+ i32.ne $push16=, $pop15, $9
+ br_if $pop16, 0 # 0: down to label8
# BB#1: # %lor.lhs.false
- i32.load $push21=, 0($1)
- br_if $pop21, 0 # 0: down to label8
+ i32.load $push17=, 0($0):p2align=3
+ br_if $pop17, 0 # 0: down to label8
# BB#2: # %lor.lhs.false6
- i32.const $push22=, 12
- i32.const $15=, 8
- i32.add $15=, $16, $15
- i32.add $push23=, $15, $pop22
- i32.load $push24=, 0($pop23)
- i32.const $push25=, 999
- i32.ne $push26=, $pop24, $pop25
- br_if $pop26, 0 # 0: down to label8
+ i32.const $push18=, 12
+ i32.const $10=, 8
+ i32.add $10=, $13, $10
+ i32.add $push19=, $10, $pop18
+ i32.load $push20=, 0($pop19)
+ i32.const $push21=, 999
+ i32.ne $push22=, $pop20, $pop21
+ br_if $pop22, 0 # 0: down to label8
# BB#3: # %lor.lhs.false11
- i32.load $push27=, 0($3)
- i32.const $push28=, 777
- i32.ne $push29=, $pop27, $pop28
- br_if $pop29, 0 # 0: down to label8
+ i32.const $push23=, 16
+ i32.const $11=, 8
+ i32.add $11=, $13, $11
+ i32.add $push24=, $11, $pop23
+ i32.load $push25=, 0($pop24):p2align=3
+ i32.const $push26=, 777
+ i32.ne $push27=, $pop25, $pop26
+ br_if $pop27, 0 # 0: down to label8
# BB#4: # %lor.lhs.false16
- i64.load $push30=, 32($16)
- i64.const $push31=, 953482739823
- i64.ne $push32=, $pop30, $pop31
- br_if $pop32, 0 # 0: down to label8
+ i64.load $push28=, 32($13):p2align=4
+ i64.const $push29=, 953482739823
+ i64.ne $push30=, $pop28, $pop29
+ br_if $pop30, 0 # 0: down to label8
# BB#5: # %lor.lhs.false24
- i64.load $push33=, 0($2)
+ i32.const $push31=, 8
+ i32.const $12=, 32
+ i32.add $12=, $13, $12
+ i32.or $push32=, $12, $pop31
+ i64.load $push33=, 0($pop32)
i64.const $push34=, 1906965479424
i64.ne $push35=, $pop33, $pop34
br_if $pop35, 0 # 0: down to label8
# BB#6: # %if.end
- call exit@FUNCTION, $0
+ i32.const $push36=, 0
+ call exit@FUNCTION, $pop36
unreachable
.LBB2_7: # %if.then
end_block # label8:
@@ -192,7 +198,7 @@ main: # @main
.type .Lmain.uv,@object # @main.uv
.section .rodata.cst16,"aM",@progbits,16
- .align 4
+ .p2align 4
.Lmain.uv:
.int32 111 # 0x6f
.int32 222 # 0xde
@@ -202,7 +208,7 @@ main: # @main
.type .Lmain.s,@object # @main.s
.section .rodata..Lmain.s,"a",@progbits
- .align 2
+ .p2align 2
.Lmain.s:
.int32 0
.int32 555 # 0x22b