diff options
Diffstat (limited to 'test/torture-s/scope-1.c.s')
-rw-r--r-- | test/torture-s/scope-1.c.s | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/test/torture-s/scope-1.c.s b/test/torture-s/scope-1.c.s new file mode 100644 index 000000000..a09c73c3e --- /dev/null +++ b/test/torture-s/scope-1.c.s @@ -0,0 +1,54 @@ + .text + .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/scope-1.c" + .globl f + .type f,@function +f: # @f + .result i32 + .local i32 +# BB#0: # %entry + block BB0_2 + i32.const $push0=, 0 + i32.load $push1=, v($pop0) + i32.const $push2=, 3 + i32.ne $push3=, $pop1, $pop2 + br_if $pop3, BB0_2 +# BB#1: # %if.end + return $0 +BB0_2: # %if.then + call abort + unreachable +func_end0: + .size f, func_end0-f + + .globl main + .type main,@function +main: # @main + .result i32 + .local i32 +# BB#0: # %entry + i32.const $0=, 0 + block BB1_2 + i32.load $push0=, v($0) + i32.const $push1=, 3 + i32.ne $push2=, $pop0, $pop1 + br_if $pop2, BB1_2 +# BB#1: # %f.exit + call exit, $0 + unreachable +BB1_2: # %if.then.i + call abort + unreachable +func_end1: + .size main, func_end1-main + + .type v,@object # @v + .data + .globl v + .align 2 +v: + .int32 3 # 0x3 + .size v, 4 + + + .ident "clang version 3.8.0 " + .section ".note.GNU-stack","",@progbits |