diff options
Diffstat (limited to 'test/torture-s/va-arg-trap-1.c.s')
-rw-r--r-- | test/torture-s/va-arg-trap-1.c.s | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/test/torture-s/va-arg-trap-1.c.s b/test/torture-s/va-arg-trap-1.c.s new file mode 100644 index 000000000..fe9af4ecc --- /dev/null +++ b/test/torture-s/va-arg-trap-1.c.s @@ -0,0 +1,86 @@ + .text + .file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/va-arg-trap-1.c" + .section .text.foo,"ax",@progbits + .hidden foo + .globl foo + .type foo,@function +foo: # @foo + .result i32 +# BB#0: # %entry + i32.const $push0=, 0 + call exit@FUNCTION, $pop0 + unreachable + .endfunc +.Lfunc_end0: + .size foo, .Lfunc_end0-foo + + .section .text.bar,"ax",@progbits + .hidden bar + .globl bar + .type bar,@function +bar: # @bar + .param i32 + .local i32 +# BB#0: # %entry + i32.const $push0=, 0 + i32.store $discard=, ap($pop0), $1 + i32.call $discard=, foo@FUNCTION + unreachable + .endfunc +.Lfunc_end1: + .size bar, .Lfunc_end1-bar + + .section .text.main,"ax",@progbits + .hidden main + .globl main + .type main,@function +main: # @main + .result i32 + .local i32, i32, i32, i32, i32, i32, i32, i32 +# BB#0: # %entry + i32.const $5=, __stack_pointer + i32.load $5=, 0($5) + i32.const $6=, 16 + i32.sub $7=, $5, $6 + i32.const $6=, __stack_pointer + i32.store $7=, 0($6), $7 + i32.const $1=, __stack_pointer + i32.load $1=, 0($1) + i32.const $2=, 4 + i32.sub $7=, $1, $2 + i32.const $2=, __stack_pointer + i32.store $7=, 0($2), $7 + i32.const $push0=, 0 + i32.store $discard=, 0($7), $pop0 + call bar@FUNCTION, $0 + i32.const $3=, __stack_pointer + i32.load $3=, 0($3) + i32.const $4=, 4 + i32.add $7=, $3, $4 + i32.const $4=, __stack_pointer + i32.store $7=, 0($4), $7 + unreachable + .endfunc +.Lfunc_end2: + .size main, .Lfunc_end2-main + + .hidden ap # @ap + .type ap,@object + .section .bss.ap,"aw",@nobits + .globl ap + .p2align 2 +ap: + .int32 0 + .size ap, 4 + + .hidden f # @f + .type f,@object + .section .bss.f,"aw",@nobits + .globl f + .p2align 2 +f: + .int32 0 # float 0 + .size f, 4 + + + .ident "clang version 3.9.0 " |