diff options
Diffstat (limited to 'test/torture-s/pr43784.c.s')
-rw-r--r-- | test/torture-s/pr43784.c.s | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/test/torture-s/pr43784.c.s b/test/torture-s/pr43784.c.s new file mode 100644 index 000000000..b6631a58f --- /dev/null +++ b/test/torture-s/pr43784.c.s @@ -0,0 +1,80 @@ + .text + .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr43784.c" + .globl main + .type main,@function +main: # @main + .result i32 + .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 +# BB#0: # %entry + i32.const $4=, __stack_pointer + i32.load $4=, 0($4) + i32.const $5=, 256 + i32.sub $9=, $4, $5 + i32.const $5=, __stack_pointer + i32.store $9=, 0($5), $9 + i32.const $3=, 0 +BB0_1: # %for.body + # =>This Inner Loop Header: Depth=1 + loop BB0_2 + i32.const $0=, v + i32.add $push0=, $0, $3 + i32.store8 $discard=, 0($pop0), $3 + i32.const $1=, 1 + i32.add $3=, $3, $1 + i32.const $2=, 256 + i32.ne $push1=, $3, $2 + br_if $pop1, BB0_1 +BB0_2: # %for.end + i32.const $7=, 0 + i32.add $7=, $9, $7 + call rp, $7 + i32.const $push2=, v+4 + i32.const $8=, 0 + i32.add $8=, $9, $8 + call memcpy, $pop2, $8, $2 + i32.const $3=, 0 +BB0_3: # %for.body4 + # =>This Inner Loop Header: Depth=1 + block BB0_6 + loop BB0_5 + i32.add $push3=, $0, $3 + i32.const $push4=, 4 + i32.add $push5=, $pop3, $pop4 + i32.load8_u $push6=, 0($pop5) + i32.ne $push7=, $3, $pop6 + br_if $pop7, BB0_6 +# BB#4: # %for.cond1 + # in Loop: Header=BB0_3 Depth=1 + i32.add $3=, $3, $1 + i32.const $push8=, 255 + i32.le_s $push9=, $3, $pop8 + br_if $pop9, BB0_3 +BB0_5: # %for.end12 + i32.const $push10=, 0 + i32.const $6=, 256 + i32.add $9=, $9, $6 + i32.const $6=, __stack_pointer + i32.store $9=, 0($6), $9 + return $pop10 +BB0_6: # %if.then + call abort + unreachable +func_end0: + .size main, func_end0-main + + .type rp,@function +rp: # @rp + .param i32 +# BB#0: # %entry + i32.const $push0=, v + i32.const $push1=, 256 + call memcpy, $0, $pop0, $pop1 + return +func_end1: + .size rp, func_end1-rp + + .type v,@object # @v + .lcomm v,260,2 + + .ident "clang version 3.8.0 " + .section ".note.GNU-stack","",@progbits |