summaryrefslogtreecommitdiff
path: root/test/torture-s/struct-cpy-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/struct-cpy-1.c.s')
-rw-r--r--test/torture-s/struct-cpy-1.c.s46
1 files changed, 18 insertions, 28 deletions
diff --git a/test/torture-s/struct-cpy-1.c.s b/test/torture-s/struct-cpy-1.c.s
index f5bab3eef..fc7a750a1 100644
--- a/test/torture-s/struct-cpy-1.c.s
+++ b/test/torture-s/struct-cpy-1.c.s
@@ -5,19 +5,17 @@
.globl ini
.type ini,@function
ini: # @ini
- .local i32
# BB#0: # %entry
i32.const $push2=, pty+40
- i32.const $push0=, zero_t
- i32.const $push1=, 44
- call memcpy@FUNCTION, $pop2, $pop0, $pop1
- i32.const $0=, 0
- i32.const $push4=, 3
- i32.store $discard=, pty+48($0), $pop4
- i32.const $push5=, 4
- i32.store $discard=, pty+52($0), $pop5
+ i32.const $push1=, 0
+ i32.const $push0=, 44
+ i32.call $discard=, memset@FUNCTION, $pop2, $pop1, $pop0
+ i32.const $push6=, 0
i64.const $push3=, 8589934593
- i64.store $discard=, pty+40($0), $pop3
+ i64.store $discard=, pty+40($pop6), $pop3
+ i32.const $push5=, 0
+ i64.const $push4=, 17179869187
+ i64.store $discard=, pty+48($pop5), $pop4
return
.endfunc
.Lfunc_end0:
@@ -29,32 +27,24 @@ ini: # @ini
.type main,@function
main: # @main
.result i32
- .local i32
# BB#0: # %entry
i32.const $push2=, pty+40
- i32.const $push0=, zero_t
- i32.const $push1=, 44
- call memcpy@FUNCTION, $pop2, $pop0, $pop1
- i32.const $0=, 0
- i32.const $push4=, 3
- i32.store $discard=, pty+48($0), $pop4
- i32.const $push5=, 4
- i32.store $discard=, pty+52($0), $pop5
+ i32.const $push1=, 0
+ i32.const $push0=, 44
+ i32.call $discard=, memset@FUNCTION, $pop2, $pop1, $pop0
+ i32.const $push7=, 0
i64.const $push3=, 8589934593
- i64.store $discard=, pty+40($0), $pop3
- return $0
+ i64.store $discard=, pty+40($pop7), $pop3
+ i32.const $push6=, 0
+ i64.const $push4=, 17179869187
+ i64.store $discard=, pty+48($pop6), $pop4
+ i32.const $push5=, 0
+ return $pop5
.endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main
.type pty,@object # @pty
.lcomm pty,88,3
- .type zero_t,@object # @zero_t
- .section .rodata.zero_t,"a",@progbits
- .align 2
-zero_t:
- .skip 44
- .size zero_t, 44
-
.ident "clang version 3.9.0 "