https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63442
Bug ID: 63442 Summary: [AArch64] ICE with ubsan/overflow-int128.c test Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: clyon at gcc dot gnu.org testsuite/c-c++-common/ubsan/overflow-int128.c causes an ICE on AArch64: /aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64-none-linux-gnu/gcc3/gcc/xgcc -B/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64-none-linux-gnu/gcc3/gcc/ /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/testsuite/c-c++-common/ubsan/overflow-int128.c gcc_tg.o -B/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64-none-linux-gnu/gcc3/aarch64-none-linux-gnu/./libsanitizer/ -B/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64-none-linux-gnu/gcc3/aarch64-none-linux-gnu/./libsanitizer/ubsan/ -L/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64-none-linux-gnu/gcc3/aarch64-none-linux-gnu/./libsanitizer/ubsan/.libs -fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -fsanitize=signed-integer-overflow -DSTACK_SIZE=16384 -Wl,-wrap,exit -Wl,-wrap,_exit -Wl,-wrap,main -Wl,-wrap,abort -lm -o ./overflow-int128.exe (timeout = 800) /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/testsuite/c-c++-common/ubsan/overflow-int128.c: In function 'main': /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/testsuite/c-c++-common/ubsan/overflow-int128.c:14:27: internal compiler error: in copy_to_mode_reg, at explow.c:635 0x728188 copy_to_mode_reg(machine_mode, rtx_def*) /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/explow.c:635 0x95cafb prepare_cmp_insn /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/optabs.c:4206 0x95d863 emit_cmp_and_jump_insns(rtx_def*, rtx_def*, rtx_code, rtx_def*, machine_mode, int, rtx_def*, int) /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/optabs.c:4381 0x86b8e6 ubsan_expand_si_overflow_addsub_check(tree_code, gimple_statement_base*) /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/internal-fn.c:303 0x65da05 expand_gimple_stmt_1 /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/cfgexpand.c:3218 0x65df3f expand_gimple_stmt /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/cfgexpand.c:3370 0x65e7df expand_gimple_basic_block /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/cfgexpand.c:5209 0x661a93 execute /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/cfgexpand.c:5815 Please submit a full bug report, Where GCC is confired with --target aarch64-none-linux-gnu