diff options
Diffstat (limited to 'test/torture-s/20021015-1.c.s')
-rw-r--r-- | test/torture-s/20021015-1.c.s | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/test/torture-s/20021015-1.c.s b/test/torture-s/20021015-1.c.s new file mode 100644 index 000000000..13d5dc13c --- /dev/null +++ b/test/torture-s/20021015-1.c.s @@ -0,0 +1,51 @@ + .text + .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/20021015-1.c" + .globl g + .type g,@function +g: # @g + .param i32, i32, i32, i32, i32 +# BB#0: # %entry + block BB0_2 + i32.load $push0=, 0($4) + i32.const $push1=, g_list + i32.ne $push2=, $pop0, $pop1 + br_if $pop2, BB0_2 +# BB#1: # %if.end + i32.const $4=, 0 + i32.store8 $discard=, g_list($4), $4 + return +BB0_2: # %if.then + call abort + unreachable +func_end0: + .size g, func_end0-g + + .globl main + .type main,@function +main: # @main + .result i32 + .local i32 +# BB#0: # %entry + i32.const $0=, 0 + block BB1_2 + i32.load8_u $push0=, g_list($0) + i32.const $push1=, 0 + i32.eq $push2=, $pop0, $pop1 + br_if $pop2, BB1_2 +# BB#1: # %g.exit + i32.store8 $discard=, g_list($0), $0 +BB1_2: # %for.end + return $0 +func_end1: + .size main, func_end1-main + + .type g_list,@object # @g_list + .data + .globl g_list +g_list: + .int8 49 + .size g_list, 1 + + + .ident "clang version 3.8.0 " + .section ".note.GNU-stack","",@progbits |