summaryrefslogtreecommitdiff
path: root/test/torture-s/pr49218.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/pr49218.c.s')
-rw-r--r--test/torture-s/pr49218.c.s76
1 files changed, 39 insertions, 37 deletions
diff --git a/test/torture-s/pr49218.c.s b/test/torture-s/pr49218.c.s
index 8903dc35b..d2f444421 100644
--- a/test/torture-s/pr49218.c.s
+++ b/test/torture-s/pr49218.c.s
@@ -6,59 +6,61 @@
.type main,@function
main: # @main
.result i32
- .local i64, i32, i64, i64, i32, i64, i64, i32, i32, i32, i32, i32, i32
+ .local i64, i64, i64, i32, i64, i64, i32, i32, i32, i32
# BB#0: # %entry
+ i32.const $6=, __stack_pointer
+ i32.load $6=, 0($6)
+ i32.const $7=, 16
+ i32.sub $9=, $6, $7
i32.const $7=, __stack_pointer
- i32.load $7=, 0($7)
- i32.const $8=, 16
- i32.sub $12=, $7, $8
- i32.const $8=, __stack_pointer
- i32.store $12=, 0($8), $12
- i32.const $1=, 0
- f32.load $push0=, f($1)
- i32.const $10=, 0
- i32.add $10=, $12, $10
- call __fixsfti@FUNCTION, $10, $pop0
- i64.load $5=, 0($12)
- i32.const $push1=, 8
- i32.const $11=, 0
- i32.add $11=, $12, $11
- i32.add $push2=, $11, $pop1
- i64.load $6=, 0($pop2)
- i64.const $2=, 0
+ i32.store $9=, 0($7), $9
+ i32.const $push18=, 0
+ f32.load $push0=, f($pop18)
+ call __fixsfti@FUNCTION, $9, $pop0
+ i64.const $1=, 0
block
- i64.eq $push6=, $6, $2
+ i32.const $push1=, 8
+ i32.add $push2=, $9, $pop1
+ i64.load $push13=, 0($pop2)
+ tee_local $push17=, $5=, $pop13
+ i64.const $push16=, 0
+ i64.eq $push6=, $pop17, $pop16
+ i64.load $push12=, 0($9)
+ tee_local $push15=, $4=, $pop12
i64.const $push4=, 10
- i64.gt_u $push5=, $5, $pop4
- i64.gt_s $push3=, $6, $2
+ i64.gt_u $push5=, $pop15, $pop4
+ i64.const $push14=, 0
+ i64.gt_s $push3=, $5, $pop14
i32.select $push7=, $pop6, $pop5, $pop3
br_if $pop7, 0 # 0: down to label0
.LBB0_1: # %do.body
# =>This Inner Loop Header: Depth=1
loop # label1:
- i64.const $3=, 1
- i64.add $0=, $5, $3
- i64.lt_u $4=, $0, $5
- i64.extend_u/i32 $5=, $4
- i64.eq $4=, $0, $2
- i64.select $5=, $4, $3, $5
- i64.add $6=, $6, $5
+ i64.const $2=, 1
+ i64.add $0=, $4, $2
+ i64.lt_u $3=, $0, $4
+ i64.extend_u/i32 $4=, $3
+ i64.eq $3=, $0, $1
+ i64.select $4=, $3, $2, $4
+ i64.add $5=, $5, $4
#APP
#NO_APP
- copy_local $5=, $0
+ copy_local $4=, $0
i64.const $push8=, 11
i64.xor $push9=, $0, $pop8
- i64.or $push10=, $pop9, $6
- i64.ne $push11=, $pop10, $2
+ i64.or $push10=, $5, $pop9
+ i64.const $push19=, 0
+ i64.ne $push11=, $pop10, $pop19
br_if $pop11, 0 # 0: up to label1
.LBB0_2: # %if.end
end_loop # label2:
end_block # label0:
- i32.const $9=, 16
- i32.add $12=, $12, $9
- i32.const $9=, __stack_pointer
- i32.store $12=, 0($9), $12
- return $1
+ i32.const $push20=, 0
+ i32.const $8=, 16
+ i32.add $9=, $9, $8
+ i32.const $8=, __stack_pointer
+ i32.store $9=, 0($8), $9
+ return $pop20
.endfunc
.Lfunc_end0:
.size main, .Lfunc_end0-main
@@ -67,7 +69,7 @@ main: # @main
.type f,@object
.section .bss.f,"aw",@nobits
.globl f
- .align 2
+ .p2align 2
f:
.int32 0 # float 0
.size f, 4