http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56979
Bug #: 56979 Summary: ICE in output_operand: invalid operand for code 'P' Classification: Unclassified Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: mgret...@gcc.gnu.org Created attachment 29882 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29882 Reduced testcase The attached testcase causes the following ICE when compiled as shown: $ arm-none-linux-gnueabi-g++ -fsigned-char -march=armv7-a -mfloat-abi=hard -mfpu=neon -ftree-vectorize -fPIC besttry.c besttry.c: In function ‘float2 operator-(float, float2)’: besttry.c:7:1: internal compiler error: output_operand: invalid operand for code 'P' } ^ 0x86acde output_operand_lossage(char const*, ...) /work/sources/gcc-fsf/master/gcc/final.c:3303 0xcdf7ba arm_print_operand /work/sources/gcc-fsf/master/gcc/config/arm/arm.c:18336 0x86ad2e output_operand(rtx_def*, int) /work/sources/gcc-fsf/master/gcc/final.c:3725 0x86b70b output_asm_insn /work/sources/gcc-fsf/master/gcc/final.c:3604 0x86b70b output_asm_insn(char const*, rtx_def**) /work/sources/gcc-fsf/master/gcc/final.c:3493 0xcd6864 output_move_vfp(rtx_def**) /work/sources/gcc-fsf/master/gcc/config/arm/arm.c:15383 0x86c6e8 final_scan_insn(rtx_def*, _IO_FILE*, int, int, int*) /work/sources/gcc-fsf/master/gcc/final.c:2853 0x86da15 final(rtx_def*, _IO_FILE*, int) /work/sources/gcc-fsf/master/gcc/final.c:1957 0x86de29 rest_of_handle_final /work/sources/gcc-fsf/master/gcc/final.c:4332 Issue also seen on 4.7, and 4.8. arm-none-linux-g++ -v: Using built-in specs. COLLECT_GCC=/work/builds/gcc-fsf-master/tools/bin/arm-none-linux-gnueabi-g++ COLLECT_LTO_WRAPPER=/work/builds/gcc-fsf-master/tools/libexec/gcc/arm-none-linux-gnueabi/4.9.0/lto-wrapper Target: arm-none-linux-gnueabi Configured with: /work/sources/gcc-fsf/master/configure --target=arm-none-linux-gnueabi --prefix=/work/builds/gcc-fsf-master/tools --with-sysroot=/work/builds/gcc-fsf-master/sysroot-arm-none-linux-gnueabi --disable-libssp --disable-libgomp --disable-libmudflap --enable-languages=c,c++ --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=softfp --with-thumb : (reconfigured) /work/sources/gcc-fsf/master/configure --target=arm-none-linux-gnueabi --prefix=/work/builds/gcc-fsf-master/tools --with-sysroot=/work/builds/gcc-fsf-master/sysroot-arm-none-linux-gnueabi --disable-libssp --disable-libgomp --disable-libmudflap --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=softfp --with-thumb target_alias=arm-none-linux-gnueabi CC=gcc --enable-languages=c,c++,lto --no-create --no-recursion Thread model: posix gcc version 4.9.0 20130416 (experimental) (GCC)