diff options
Diffstat (limited to 'test/torture-s/zero-struct-1.c.s')
-rw-r--r-- | test/torture-s/zero-struct-1.c.s | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/test/torture-s/zero-struct-1.c.s b/test/torture-s/zero-struct-1.c.s new file mode 100644 index 000000000..fea55e004 --- /dev/null +++ b/test/torture-s/zero-struct-1.c.s @@ -0,0 +1,78 @@ + .text + .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/zero-struct-1.c" + .globl h + .type h,@function +h: # @h + .local i32, i32, i32 +# BB#0: # %entry + i32.const $0=, 0 + i32.load $1=, ff($0) + i32.const $2=, 2 + i32.load $push0=, f($0) + i32.add $push1=, $pop0, $2 + i32.store $discard=, f($0), $pop1 + i32.add $push2=, $1, $2 + i32.store $discard=, ff($0), $pop2 + return +func_end0: + .size h, func_end0-h + + .globl main + .type main,@function +main: # @main + .result i32 + .local i32, i32, i32, i32 +# BB#0: # %entry + i32.const $0=, 0 + i32.load $1=, f($0) + i32.load $2=, ff($0) + i32.const $3=, 2 + block BB1_4 + i32.add $push1=, $1, $3 + i32.store $discard=, f($0), $pop1 + i32.add $push0=, $2, $3 + i32.store $3=, ff($0), $pop0 + i32.const $push2=, y + i32.ne $push3=, $1, $pop2 + br_if $pop3, BB1_4 +# BB#1: # %if.end + block BB1_3 + i32.const $push4=, y+2 + i32.ne $push5=, $3, $pop4 + br_if $pop5, BB1_3 +# BB#2: # %if.end3 + return $0 +BB1_3: # %if.then2 + call abort + unreachable +BB1_4: # %if.then + call abort + unreachable +func_end1: + .size main, func_end1-main + + .type y,@object # @y + .bss + .globl y +y: + .zero 3 + .size y, 3 + + .type f,@object # @f + .data + .globl f + .align 2 +f: + .int32 y + .size f, 4 + + .type ff,@object # @ff + .globl ff + .align 2 +ff: + .int32 y + .size ff, 4 + + + .ident "clang version 3.8.0 " + .section ".note.GNU-stack","",@progbits |