summaryrefslogtreecommitdiff
path: root/test/torture-s/string-opt-18.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/string-opt-18.c.s')
-rw-r--r--test/torture-s/string-opt-18.c.s55
1 files changed, 28 insertions, 27 deletions
diff --git a/test/torture-s/string-opt-18.c.s b/test/torture-s/string-opt-18.c.s
index 2bbdea20c..096bea5c9 100644
--- a/test/torture-s/string-opt-18.c.s
+++ b/test/torture-s/string-opt-18.c.s
@@ -18,14 +18,14 @@ test1: # @test1
.type test2,@function
test2: # @test2
.param i32
- .local i32
# BB#0: # %entry
- i32.const $1=, 8
block
- i32.call $push0=, mempcpy@FUNCTION, $0, $0, $1
- i32.add $push1=, $0, $1
- i32.ne $push2=, $pop0, $pop1
- br_if $pop2, 0 # 0: down to label0
+ i32.const $push0=, 8
+ i32.call $push1=, mempcpy@FUNCTION, $0, $0, $pop0
+ i32.const $push4=, 8
+ i32.add $push2=, $0, $pop4
+ i32.ne $push3=, $pop1, $pop2
+ br_if $pop3, 0 # 0: down to label0
# BB#1: # %if.end
return
.LBB1_2: # %if.then
@@ -102,33 +102,34 @@ test7: # @test7
.type main,@function
main: # @main
.result i32
- .local i32, i32, i32, i32, i32, i32, i32, i32
+ .local i32, i32, i32, i32, i32, i32, i32
# BB#0: # %entry
+ i32.const $0=, __stack_pointer
+ i32.load $0=, 0($0)
+ i32.const $1=, 16
+ i32.sub $6=, $0, $1
i32.const $1=, __stack_pointer
- i32.load $1=, 0($1)
- i32.const $2=, 16
- i32.sub $7=, $1, $2
- i32.const $2=, __stack_pointer
- i32.store $7=, 0($2), $7
- i32.const $0=, 8
+ i32.store $6=, 0($1), $6
+ i32.const $push0=, 8
+ i32.const $3=, 6
+ i32.add $3=, $6, $3
i32.const $4=, 6
- i32.add $4=, $7, $4
+ i32.add $4=, $6, $4
+ i32.call $push1=, mempcpy@FUNCTION, $3, $4, $pop0
+ i32.const $push5=, 8
i32.const $5=, 6
- i32.add $5=, $7, $5
- i32.call $push0=, mempcpy@FUNCTION, $4, $5, $0
- i32.const $6=, 6
- i32.add $6=, $7, $6
+ i32.add $5=, $6, $5
block
- i32.add $push1=, $6, $0
- i32.ne $push2=, $pop0, $pop1
- br_if $pop2, 0 # 0: down to label1
+ i32.add $push2=, $5, $pop5
+ i32.ne $push3=, $pop1, $pop2
+ br_if $pop3, 0 # 0: down to label1
# BB#1: # %test2.exit
- i32.const $push3=, 0
- i32.const $3=, 16
- i32.add $7=, $7, $3
- i32.const $3=, __stack_pointer
- i32.store $7=, 0($3), $7
- return $pop3
+ i32.const $push4=, 0
+ i32.const $2=, 16
+ i32.add $6=, $6, $2
+ i32.const $2=, __stack_pointer
+ i32.store $6=, 0($2), $6
+ return $pop4
.LBB7_2: # %if.then.i
end_block # label1:
call abort@FUNCTION