http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54338
Bug #: 54338 Summary: internal compiler error: in find_costs_and_classes, at ira-costs.c:1711 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: x...@marvell.com I did some ARM iwmmxt intrinsic test for mainline gcc with this check-in r190511 | nickc | 2012-08-19 15:11:35 +0800 (Sun, 19 Aug 2012) | 3 lines PR target/54306 * config/arm/mmintrin.h: Remove spurious #endif. and encountered an internal compiler error for this simple case, with option -march=iwmmxt2 -S #include<mmintrin.h> __m64 foo(__m64 r, int i) { r = _mm_slli_si64(r, i); return r; } internal compiler error: in find_costs_and_classes, at ira-costs.c:1711 While with -O, compiling could pass. Reproduce: gcc -march=iwmmxt2 -S bug.i