diff options
author | JF Bastien <jfb@chromium.org> | 2016-01-06 15:32:35 -0800 |
---|---|---|
committer | JF Bastien <jfb@chromium.org> | 2016-01-06 15:32:35 -0800 |
commit | d7632fc6d76289ab2d66f54cb8eb87049b743818 (patch) | |
tree | 21e72be74c9c6d51c2aeb8f5bbd0997124f636f1 /test/torture-s/zero-struct-2.c.s | |
parent | 004bb9433e8e6143968530f9f0f60102aa5f7715 (diff) | |
download | binaryen-d7632fc6d76289ab2d66f54cb8eb87049b743818.tar.gz binaryen-d7632fc6d76289ab2d66f54cb8eb87049b743818.tar.bz2 binaryen-d7632fc6d76289ab2d66f54cb8eb87049b743818.zip |
Add test/torture-s
Diffstat (limited to 'test/torture-s/zero-struct-2.c.s')
-rw-r--r-- | test/torture-s/zero-struct-2.c.s | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/test/torture-s/zero-struct-2.c.s b/test/torture-s/zero-struct-2.c.s new file mode 100644 index 000000000..514709a13 --- /dev/null +++ b/test/torture-s/zero-struct-2.c.s @@ -0,0 +1,48 @@ + .text + .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/zero-struct-2.c" + .globl one_raw_spinlock + .type one_raw_spinlock,@function +one_raw_spinlock: # @one_raw_spinlock + .local i32 +# BB#0: # %entry + i32.const $0=, 0 + i32.load $push0=, ii($0) + i32.const $push1=, 1 + i32.add $push2=, $pop0, $pop1 + i32.store $discard=, ii($0), $pop2 + return +func_end0: + .size one_raw_spinlock, func_end0-one_raw_spinlock + + .globl main + .type main,@function +main: # @main + .result i32 + .local i32, i32 +# BB#0: # %entry + i32.const $0=, 0 + i32.load $1=, ii($0) + block BB1_2 + i32.const $push0=, 1 + i32.add $push1=, $1, $pop0 + i32.store $discard=, ii($0), $pop1 + br_if $1, BB1_2 +# BB#1: # %if.end + return $0 +BB1_2: # %if.then + call abort + unreachable +func_end1: + .size main, func_end1-main + + .type ii,@object # @ii + .bss + .globl ii + .align 2 +ii: + .int32 0 # 0x0 + .size ii, 4 + + + .ident "clang version 3.8.0 " + .section ".note.GNU-stack","",@progbits |