diff options
Diffstat (limited to 'test/torture-s/20090814-1.c.s')
-rw-r--r-- | test/torture-s/20090814-1.c.s | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/test/torture-s/20090814-1.c.s b/test/torture-s/20090814-1.c.s new file mode 100644 index 000000000..3051b8b2f --- /dev/null +++ b/test/torture-s/20090814-1.c.s @@ -0,0 +1,73 @@ + .text + .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/20090814-1.c" + .globl bar + .type bar,@function +bar: # @bar + .param i32 + .result i32 +# BB#0: # %entry + i32.load $push0=, 0($0) + return $pop0 +func_end0: + .size bar, func_end0-bar + + .globl foo + .type foo,@function +foo: # @foo + .param i32 + .result i32 +# BB#0: # %entry + i32.const $push0=, 0 + i32.load $push1=, i($pop0) + i32.const $push2=, 2 + i32.shl $push3=, $pop1, $pop2 + i32.add $push4=, $0, $pop3 + i32.call $push5=, bar, $pop4 + return $pop5 +func_end1: + .size foo, func_end1-foo + + .globl main + .type main,@function +main: # @main + .result i32 + .local i32 +# BB#0: # %entry + i32.const $0=, 0 + block BB2_2 + i32.const $push0=, -1 + i32.store $discard=, a($0), $pop0 + i32.const $push4=, 1 + i32.store $discard=, i($0), $pop4 + i32.const $push1=, a + i32.call $push5=, foo, $pop1 + i32.const $push2=, 42 + i32.store $push3=, a+4($0), $pop2 + i32.ne $push6=, $pop5, $pop3 + br_if $pop6, BB2_2 +# BB#1: # %if.end + return $0 +BB2_2: # %if.then + call abort + unreachable +func_end2: + .size main, func_end2-main + + .type i,@object # @i + .bss + .globl i + .align 2 +i: + .int32 0 # 0x0 + .size i, 4 + + .type a,@object # @a + .globl a + .align 2 +a: + .zero 8 + .size a, 8 + + + .ident "clang version 3.8.0 " + .section ".note.GNU-stack","",@progbits |