summaryrefslogtreecommitdiff
path: root/test/torture-s/va-arg-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/va-arg-1.c.s')
-rw-r--r--test/torture-s/va-arg-1.c.s23
1 files changed, 12 insertions, 11 deletions
diff --git a/test/torture-s/va-arg-1.c.s b/test/torture-s/va-arg-1.c.s
index b5698dd02..0587b0c6f 100644
--- a/test/torture-s/va-arg-1.c.s
+++ b/test/torture-s/va-arg-1.c.s
@@ -9,17 +9,18 @@ f: # @f
.result i32
.local i32, i32, i32
# BB#0: # %entry
- i32.const $push16=, __stack_pointer
- i32.const $push13=, __stack_pointer
- i32.load $push14=, 0($pop13)
+ i32.const $push16=, 0
+ i32.const $push13=, 0
+ i32.load $push14=, __stack_pointer($pop13)
i32.const $push15=, 16
i32.sub $push20=, $pop14, $pop15
- i32.store $12=, 0($pop16), $pop20
+ i32.store $push24=, __stack_pointer($pop16), $pop20
+ tee_local $push23=, $12=, $pop24
i32.store $push22=, 12($12), $9
tee_local $push21=, $9=, $pop22
i32.const $push0=, 4
i32.add $push1=, $pop21, $pop0
- i32.store $10=, 12($12), $pop1
+ i32.store $10=, 12($pop23), $pop1
block
i32.load $push2=, 0($9)
i32.const $push3=, 10
@@ -40,10 +41,10 @@ f: # @f
i32.load $push12=, 0($11)
br_if 0, $pop12 # 0: down to label0
# BB#3: # %if.end11
- i32.const $push19=, __stack_pointer
+ i32.const $push19=, 0
i32.const $push17=, 16
i32.add $push18=, $12, $pop17
- i32.store $drop=, 0($pop19), $pop18
+ i32.store $drop=, __stack_pointer($pop19), $pop18
return $12
.LBB0_4: # %if.then10
end_block # label0:
@@ -61,12 +62,12 @@ main: # @main
.result i32
.local i32, i32
# BB#0: # %entry
- i32.const $push5=, __stack_pointer
- i32.const $push2=, __stack_pointer
- i32.load $push3=, 0($pop2)
+ i32.const $push5=, 0
+ i32.const $push2=, 0
+ i32.load $push3=, __stack_pointer($pop2)
i32.const $push4=, 16
i32.sub $push6=, $pop3, $pop4
- i32.store $push8=, 0($pop5), $pop6
+ i32.store $push8=, __stack_pointer($pop5), $pop6
tee_local $push7=, $1=, $pop8
i32.const $push0=, 0
i32.store $0=, 8($pop7), $pop0