summaryrefslogtreecommitdiff
path: root/test/torture-s/20120919-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/20120919-1.c.s')
-rw-r--r--test/torture-s/20120919-1.c.s106
1 files changed, 56 insertions, 50 deletions
diff --git a/test/torture-s/20120919-1.c.s b/test/torture-s/20120919-1.c.s
index 42d301aa1..b6ae0dca2 100644
--- a/test/torture-s/20120919-1.c.s
+++ b/test/torture-s/20120919-1.c.s
@@ -25,74 +25,80 @@ init: # @init
.type main,@function
main: # @main
.result i32
- .local i32, i32, i32, i32, i32, f64, i32, i32, i32, i32, i32, i32, i32, i32, i32
+ .local i32, i32, i32, i32, i32, i32, i32, f64, i32, i32, i32, i32, i32, i32
# BB#0: # %entry
+ i32.const $8=, __stack_pointer
+ i32.load $8=, 0($8)
+ i32.const $9=, 6144
+ i32.sub $13=, $8, $9
i32.const $9=, __stack_pointer
- i32.load $9=, 0($9)
- i32.const $10=, 6144
- i32.sub $14=, $9, $10
- i32.const $10=, __stack_pointer
- i32.store $14=, 0($10), $14
- i32.const $push0=, 1
- i32.store $4=, 12($14), $pop0
- i32.const $12=, 12
- i32.add $12=, $14, $12
- i32.const $13=, 16
- i32.add $13=, $14, $13
- call init@FUNCTION, $12, $13
- i32.load $0=, 12($14)
- i32.const $8=, 0
+ i32.store $13=, 0($9), $13
+ i32.const $push1=, 1
+ i32.store $3=, 12($13), $pop1
+ i32.const $11=, 12
+ i32.add $11=, $13, $11
+ i32.const $12=, 16
+ i32.add $12=, $13, $12
+ call init@FUNCTION, $11, $12
block
- i32.lt_s $push1=, $0, $8
- br_if $pop1, 0 # 0: down to label1
+ i32.load $push0=, 12($13)
+ tee_local $push15=, $6=, $pop0
+ i32.const $push14=, 0
+ i32.lt_s $push2=, $pop15, $pop14
+ br_if $pop2, 0 # 0: down to label1
# BB#1: # %while.body.lr.ph
- i32.load $1=, pd($8)
- i32.load $2=, pi($8)
- i32.const $7=, -1
+ i32.const $push17=, 0
+ i32.load $0=, pd($pop17)
+ i32.const $push16=, 0
+ i32.load $1=, pi($pop16)
+ i32.const $4=, -1
+ i32.const $5=, 0
.LBB1_2: # %while.body
# =>This Inner Loop Header: Depth=1
loop # label2:
block
- br_if $7, 0 # 0: down to label4
+ br_if $4, 0 # 0: down to label4
# BB#3: # %if.then
# in Loop: Header=BB1_2 Depth=1
- f64.load $5=, 0($1)
- i32.load $3=, 0($2)
+ i32.load $2=, 0($1)
block
- f64.const $push2=, 0x0p0
- f64.le $push3=, $5, $pop2
- f64.ne $push4=, $5, $5
- i32.or $push5=, $pop3, $pop4
- br_if $pop5, 0 # 0: down to label5
+ f64.load $push3=, 0($0)
+ tee_local $push19=, $7=, $pop3
+ f64.const $push18=, 0x0p0
+ f64.le $push4=, $pop19, $pop18
+ f64.ne $push5=, $7, $7
+ i32.or $push6=, $pop4, $pop5
+ br_if $pop6, 0 # 0: down to label5
# BB#4: # %if.then3
# in Loop: Header=BB1_2 Depth=1
- i32.const $6=, 0
- i32.gt_s $push6=, $3, $6
- i32.select $push7=, $pop6, $3, $6
- i32.add $8=, $pop7, $8
+ i32.const $push21=, 0
+ i32.gt_s $push7=, $2, $pop21
+ i32.const $push20=, 0
+ i32.select $push8=, $pop7, $2, $pop20
+ i32.add $5=, $pop8, $5
.LBB1_5: # %if.end8
# in Loop: Header=BB1_2 Depth=1
end_block # label5:
- f64.convert_s/i32 $push8=, $3
- f64.store $discard=, 0($1), $pop8
+ f64.convert_s/i32 $push9=, $2
+ f64.store $discard=, 0($0), $pop9
.LBB1_6: # %if.end11
# in Loop: Header=BB1_2 Depth=1
end_block # label4:
- i32.add $7=, $7, $4
- i32.lt_s $push9=, $7, $0
- br_if $pop9, 0 # 0: up to label2
+ i32.add $4=, $4, $3
+ i32.lt_s $push10=, $4, $6
+ br_if $pop10, 0 # 0: up to label2
# BB#7: # %while.end
end_loop # label3:
- i32.const $push10=, 1234567890
- i32.ne $push11=, $8, $pop10
- br_if $pop11, 0 # 0: down to label1
+ i32.const $push11=, 1234567890
+ i32.ne $push12=, $5, $pop11
+ br_if $pop12, 0 # 0: down to label1
# BB#8: # %if.end15
- i32.const $push12=, 0
- i32.const $11=, 6144
- i32.add $14=, $14, $11
- i32.const $11=, __stack_pointer
- i32.store $14=, 0($11), $14
- return $pop12
+ i32.const $push13=, 0
+ i32.const $10=, 6144
+ i32.add $13=, $13, $10
+ i32.const $10=, __stack_pointer
+ i32.store $13=, 0($10), $13
+ return $pop13
.LBB1_9: # %if.then14
end_block # label1:
call abort@FUNCTION
@@ -105,7 +111,7 @@ main: # @main
.type vd,@object
.section .data.vd,"aw",@progbits
.globl vd
- .align 4
+ .p2align 4
vd:
.int64 4607182418800017408 # double 1
.int64 0 # double 0
@@ -115,7 +121,7 @@ vd:
.type vi,@object
.section .data.vi,"aw",@progbits
.globl vi
- .align 2
+ .p2align 2
vi:
.int32 1234567890 # 0x499602d2
.int32 0 # 0x0
@@ -125,7 +131,7 @@ vi:
.type pd,@object
.section .data.pd,"aw",@progbits
.globl pd
- .align 2
+ .p2align 2
pd:
.int32 vd
.size pd, 4
@@ -134,7 +140,7 @@ pd:
.type pi,@object
.section .data.pi,"aw",@progbits
.globl pi
- .align 2
+ .p2align 2
pi:
.int32 vi
.size pi, 4