diff options
Diffstat (limited to 'test/torture-s/20120817-1.c.s')
-rw-r--r-- | test/torture-s/20120817-1.c.s | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/test/torture-s/20120817-1.c.s b/test/torture-s/20120817-1.c.s new file mode 100644 index 000000000..d94412be4 --- /dev/null +++ b/test/torture-s/20120817-1.c.s @@ -0,0 +1,51 @@ + .text + .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/20120817-1.c" + .globl f + .type f,@function +f: # @f + .result i64 +# BB#0: # %entry + i32.const $push0=, 0 + i32.load $push1=, foo($pop0) + i32.const $push2=, -1 + i32.add $push3=, $pop1, $pop2 + i64.extend_s/i32 $push4=, $pop3 + i64.const $push5=, 24 + i64.mul $push6=, $pop4, $pop5 + i64.const $push7=, 40 + i64.add $push8=, $pop6, $pop7 + return $pop8 +func_end0: + .size f, func_end0-f + + .globl main + .type main,@function +main: # @main + .result i32 +# BB#0: # %entry + block BB1_2 + i64.call $push0=, f + i64.const $push1=, 16 + i64.ne $push2=, $pop0, $pop1 + br_if $pop2, BB1_2 +# BB#1: # %if.end + i32.const $push3=, 0 + call exit, $pop3 + unreachable +BB1_2: # %if.then + call abort + unreachable +func_end1: + .size main, func_end1-main + + .type foo,@object # @foo + .bss + .globl foo + .align 2 +foo: + .int32 0 # 0x0 + .size foo, 4 + + + .ident "clang version 3.8.0 " + .section ".note.GNU-stack","",@progbits |