http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50576
Bug #: 50576 Summary: Recent vector comparison changes cause an ICE Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: mgret...@sourceware.org CC: artyom.shinkar...@gmail.com, richard.guent...@gmail.com Host: x86_64-linux-gnu Target: arm-none-eabi Compiling the following (cut down from the gcc.c-torture/execute/vector-compare-1.c test case): /* try.c. */ int main (int argc, char *argv[]) { __attribute__ ((vector_size ((2) * sizeof (double)))) double d0; __attribute__ ((vector_size ((2) * sizeof (double)))) double d1; __attribute__ ((vector_size ((2) * sizeof (long long)))) long long idres; { idres = (d0 > d1); } } /* end of try.c. */ with: arm-none-eabi-gcc -mfpu=neon -mfloat-abi=softfp -mcpu=cortex-a9 -c try.c Gives: try.c: In function 'main': try.c:3:1: error: invalid vector comparison resulting type vector(2) long long int idres = d0 > d1; try.c:3:1: internal compiler error: verify_gimple failed This was tested with trunk r179378. The issue was introduced by this patch (http://gcc.gnu.org/ml/gcc-patches/2011-08/msg01088.html - checked in as r179342), and has not been fixed by Richard Guenther's follow on patch (http://gcc.gnu.org/ml/gcc-patches/2011-09/msg01933.html).