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

             Bug #: 50310
           Summary: [4.7 Regression] ICE: in gen_vcondv2div2df, at
                    config/i386/sse.md:1435 with -O -ftree-vectorize and
                    __builtin_isunordered()
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: zso...@seznam.cz
                CC: rgue...@gcc.gnu.org
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


Created attachment 25208
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25208
reduced testcase

There are three testcases that ICE with a very similiar message:

$ gcc -O -mavx -ftree-vectorize gcc.target/i386/avx-vcmppd-256-1.c
gcc.target/i386/avx-vcmppd-256-1.c: In function 'do_test':
gcc.target/i386/avx-vcmppd-256-1.c:49:5: internal compiler error: in
gen_vcondv4div4df, at config/i386/sse.md:1418
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

$ gcc -O -mavx -ftree-vectorize gcc.target/i386/avx-vcmpps-1.c 
gcc.target/i386/avx-vcmpps-1.c: In function 'do_test':
gcc.target/i386/avx-vcmpps-1.c:49:5: internal compiler error: in
gen_vcondv4siv4sf, at config/i386/sse.md:1435
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

$ gcc -O -mavx -ftree-vectorize gcc.target/i386/avx-vcmpps-256-1.c 
gcc.target/i386/avx-vcmpps-256-1.c: In function 'do_test':
gcc.target/i386/avx-vcmpps-256-1.c:49:5: internal compiler error: in
gen_vcondv8siv8sf, at config/i386/sse.md:1418
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

As the ICEs look quite similiar, I am opening just one PR for it.

Compiler output:
$ gcc -O -ftree-vectorize testcase.c 
testcase.c: In function 'foo':
testcase.c:9:10: internal compiler error: in gen_vcondv2div2df, at
config/i386/sse.md:1435
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


Maybe related to the "Vector Comparison patch".

Reply via email to