diff options
Diffstat (limited to 'test/torture-s/alloca-1.c.s')
-rw-r--r-- | test/torture-s/alloca-1.c.s | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/test/torture-s/alloca-1.c.s b/test/torture-s/alloca-1.c.s new file mode 100644 index 000000000..b120fcdf6 --- /dev/null +++ b/test/torture-s/alloca-1.c.s @@ -0,0 +1,62 @@ + .text + .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/alloca-1.c" + .globl foo + .type foo,@function +foo: # @foo + .result i32 + .local i32, i32, i32, i32, i32 +# BB#0: # %entry + i32.const $0=, __stack_pointer + i32.load $0=, 0($0) + i32.const $1=, 32 + i32.sub $4=, $0, $1 + i32.const $1=, __stack_pointer + i32.store $4=, 0($1), $4 + i32.const $push0=, 15 + i32.const $3=, 0 + i32.add $3=, $4, $3 + i32.and $push1=, $3, $pop0 + i32.const $push2=, 0 + i32.eq $push3=, $pop1, $pop2 + i32.const $2=, 32 + i32.add $4=, $4, $2 + i32.const $2=, __stack_pointer + i32.store $4=, 0($2), $4 + return $pop3 +func_end0: + .size foo, func_end0-foo + + .globl main + .type main,@function +main: # @main + .result i32 + .local i32, i32, i32, i32, i32 +# BB#0: # %entry + i32.const $0=, __stack_pointer + i32.load $0=, 0($0) + i32.const $1=, 32 + i32.sub $4=, $0, $1 + i32.const $1=, __stack_pointer + i32.store $4=, 0($1), $4 + i32.const $push0=, 15 + i32.const $3=, 0 + i32.add $3=, $4, $3 + block BB1_2 + i32.and $push1=, $3, $pop0 + br_if $pop1, BB1_2 +# BB#1: # %if.end + i32.const $push2=, 0 + i32.const $2=, 32 + i32.add $4=, $4, $2 + i32.const $2=, __stack_pointer + i32.store $4=, 0($2), $4 + return $pop2 +BB1_2: # %if.then + call abort + unreachable +func_end1: + .size main, func_end1-main + + + .ident "clang version 3.8.0 " + .section ".note.GNU-stack","",@progbits |