diff options
Diffstat (limited to 'test/torture-s/20011024-1.c.s')
-rw-r--r-- | test/torture-s/20011024-1.c.s | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/test/torture-s/20011024-1.c.s b/test/torture-s/20011024-1.c.s new file mode 100644 index 000000000..5bf4aee1e --- /dev/null +++ b/test/torture-s/20011024-1.c.s @@ -0,0 +1,49 @@ + .text + .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/20011024-1.c" + .globl main + .type main,@function +main: # @main + .result i32 + .local i32, i32 +# BB#0: # %entry + i32.const $0=, 0 + i32.const $1=, buf + block BB0_2 + i32.const $push0=, 6513249 + i32.store $discard=, buf($0), $pop0 + i32.const $push1=, .str + i32.call $push2=, strcmp, $1, $pop1 + br_if $pop2, BB0_2 +# BB#1: # %foo.exit + i32.const $push3=, .str.1 + i32.const $push4=, 9 + call memcpy, $1, $pop3, $pop4 + return $0 +BB0_2: # %if.then1.i + call abort + unreachable +func_end0: + .size main, func_end0-main + + .type buf,@object # @buf + .bss + .globl buf + .align 4 +buf: + .zero 50 + .size buf, 50 + + .type .str,@object # @.str + .section .rodata.str1.1,"aMS",@progbits,1 +.str: + .asciz "abc" + .size .str, 4 + + .type .str.1,@object # @.str.1 +.str.1: + .asciz "abcdefgh" + .size .str.1, 9 + + + .ident "clang version 3.8.0 " + .section ".note.GNU-stack","",@progbits |