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