diff options
Diffstat (limited to 'test/torture-s/20090623-1.c.s')
-rw-r--r-- | test/torture-s/20090623-1.c.s | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/test/torture-s/20090623-1.c.s b/test/torture-s/20090623-1.c.s new file mode 100644 index 000000000..f044fbe5b --- /dev/null +++ b/test/torture-s/20090623-1.c.s @@ -0,0 +1,57 @@ + .text + .file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/20090623-1.c" + .section .text.foo,"ax",@progbits + .hidden foo + .globl foo + .type foo,@function +foo: # @foo + .param i32 + .result i32 +# BB#0: # %entry + i32.const $push0=, 0 + i32.load $push1=, x($pop0) + i32.store $push2=, 0($pop1), $0 + return $pop2 + .endfunc +.Lfunc_end0: + .size foo, .Lfunc_end0-foo + + .section .text.main,"ax",@progbits + .hidden main + .globl main + .type main,@function +main: # @main + .result i32 + .local i32, i32, i32, i32, i32 +# BB#0: # %if.end + i32.const $0=, __stack_pointer + i32.load $0=, 0($0) + i32.const $1=, 16 + i32.sub $4=, $0, $1 + i32.const $1=, __stack_pointer + i32.store $4=, 0($1), $4 + i32.const $push0=, 0 + i32.const $3=, 12 + i32.add $3=, $4, $3 + i32.store $discard=, x($pop0), $3 + i32.const $push1=, 0 + i32.const $2=, 16 + i32.add $4=, $4, $2 + i32.const $2=, __stack_pointer + i32.store $4=, 0($2), $4 + return $pop1 + .endfunc +.Lfunc_end1: + .size main, .Lfunc_end1-main + + .hidden x # @x + .type x,@object + .section .bss.x,"aw",@nobits + .globl x + .p2align 2 +x: + .int32 0 + .size x, 4 + + + .ident "clang version 3.9.0 " |