diff options
Diffstat (limited to 'test/torture-s/pr53465.c.s')
-rw-r--r-- | test/torture-s/pr53465.c.s | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/test/torture-s/pr53465.c.s b/test/torture-s/pr53465.c.s new file mode 100644 index 000000000..98c07b182 --- /dev/null +++ b/test/torture-s/pr53465.c.s @@ -0,0 +1,61 @@ + .text + .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr53465.c" + .globl foo + .type foo,@function +foo: # @foo + .param i32, i32 + .local i32, i32, i32, i32 +# BB#0: # %entry + i32.const $3=, 0 + # implicit-def: %vreg19 + copy_local $5=, $3 + block BB0_6 + i32.le_s $push0=, $1, $3 + br_if $pop0, BB0_6 +BB0_1: # %for.body + # =>This Inner Loop Header: Depth=1 + loop BB0_6 + copy_local $2=, $4 + i32.load $4=, 0($0) + i32.const $push4=, 0 + i32.eq $push5=, $4, $pop4 + br_if $pop5, BB0_6 +# BB#2: # %if.end + # in Loop: Header=BB0_1 Depth=1 + block BB0_5 + i32.const $push6=, 0 + i32.eq $push7=, $5, $pop6 + br_if $pop7, BB0_5 +# BB#3: # %if.end + # in Loop: Header=BB0_1 Depth=1 + i32.gt_s $push1=, $4, $2 + br_if $pop1, BB0_5 +# BB#4: # %if.then3 + call abort + unreachable +BB0_5: # %for.cond + # in Loop: Header=BB0_1 Depth=1 + i32.const $push2=, 4 + i32.add $0=, $0, $pop2 + i32.const $5=, 1 + i32.add $3=, $3, $5 + i32.lt_s $push3=, $3, $1 + br_if $pop3, BB0_1 +BB0_6: # %for.end + return +func_end0: + .size foo, func_end0-foo + + .globl main + .type main,@function +main: # @main + .result i32 +# BB#0: # %for.cond.i.1 + i32.const $push0=, 0 + return $pop0 +func_end1: + .size main, func_end1-main + + + .ident "clang version 3.8.0 " + .section ".note.GNU-stack","",@progbits |