http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49742

           Summary: ICE for gcc.dg/vect/O3-pr39675-2.c on ARM
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: ja...@gcc.gnu.org
                CC: rgue...@gcc.gnu.org


Test gcc.dg/vect/O3/pr39675-2.c fails with an ICE on arm-none-linux-gnueabi:

Executing on host: arm-none-linux-gnueabi-gcc
/scratch/janisjo/arm-linux-fsf/src/gcc-mainline/gcc/testsuite/gcc.dg/vect/O3-pr39675-2.c
  -mfpu=neon -mfloat-abi=softfp -ffast-math -ftree-vectorize
-fno-vect-cost-model -O2 -fdump-tree-vect-details -O3 -fno-ipa-cp-clone -S  -o
O3-pr39675-2.s    (timeout = 300)
/scratch/janisjo/arm-linux-fsf/src/gcc-mainline/gcc/testsuite/gcc.dg/vect/O3-pr39675-2.c:
In function 'foo':
/scratch/janisjo/arm-linux-fsf/src/gcc-mainline/gcc/testsuite/gcc.dg/vect/O3-pr39675-2.c:27:1:
error: insn does not satisfy its constraints:
(insn 95 37 44 2 (set (reg:V2SI 95 d16 [orig:177 vect_array.21_I_lsm0.31 ]
[177])
        (mem/u/c/i:V2SI (symbol_ref/u:SI ("*.LC0") [flags 0x2]) [3 S8 A64]))
750 {*neon_movv2si}
     (nil))
/scratch/janisjo/arm-linux-fsf/src/gcc-mainline/gcc/testsuite/gcc.dg/vect/O3-pr39675-2.c:27:1:
internal compiler error: in reload_cse_simplify_operands, at postreload.c:403
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

The same failure results if the test program is compiled with options
"-mfpu=neon -mfloat-abi=softfp -O3".

The test starts failing with this patch:

2011-06-30  Richard Guenther  <rguent...@suse.de>

        PR tree-optimization/46787
        * tree-data-ref.c (dr_address_invariant_p): Remove.
        (find_data_references_in_stmt): Invariant accesses are ok now.
        * tree-vect-stmts.c (vectorizable_load): Handle invariant
        loads.
        * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
        invariant loads.

        * gcc.dg/vect/vect-121.c: New testcase.

    r175704 | rguenth | 2011-06-30 13:27:43 +0000 (Thu, 30 Jun 2011)

Reply via email to