https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102302
Bug ID: 102302 Summary: [12 Regression] ICE during RTL pass: expand: in gen_lowpart_general, at rtlhooks.c:57 Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- That's on x86-64-gnu-linux. I have still to understand why it fails for this build while others do not ICE. obj/gcc-2021.06-999999-x86_64-none-linux-gnu-x86_64-linux-gnu/./gcc/xgcc -B... --sysroot=.../libc -g -O2 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W ... -msse2 -o truncsfhf2_s.o -MT truncsfhf2_s.o -MD -MP -MF truncsfhf2_s.dep -DSHARED -c ../src/gcc-mainline/libgcc/soft-fp/truncsfhf2.c during RTL pass: expand In file included from /net/build5-trusty-cs.sje.mentorg.com/scratch/tburnus/openacc.x86_64-linux-gnu-openacc-mainline/src/gcc-mainline/libgcc/soft-fp/soft-fp.h:317, from /net/build5-trusty-cs.sje.mentorg.com/scratch/tburnus/openacc.x86_64-linux-gnu-openacc-mainline/src/gcc-mainline/libgcc/soft-fp/trunctfhf2.c:29: /net/build5-trusty-cs.sje.mentorg.com/scratch/tburnus/openacc.x86_64-linux-gnu-openacc-mainline/src/gcc-mainline/libgcc/soft-fp/trunctfhf2.c: In function '__trunctfhf2': /net/build5-trusty-cs.sje.mentorg.com/scratch/tburnus/openacc.x86_64-linux-gnu-openacc-mainline/src/gcc-mainline/libgcc/soft-fp/op-1.h:131:13: internal compiler error: in gen_lowpart_general, at rtlhooks.c:57 131 | (val) = _FP_PACK_RAW_1_flo.flt; \ | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /net/build5-trusty-cs.sje.mentorg.com/scratch/tburnus/openacc.x86_64-linux-gnu-openacc-mainline/src/gcc-mainline/libgcc/soft-fp/half.h:146:7: note: in expansion of macro '_FP_PACK_RAW_1' 146 | _FP_PACK_RAW_1 (H, (val), X); \ | ^~~~~~~~~~~~~~ /net/build5-trusty-cs.sje.mentorg.com/scratch/tburnus/openacc.x86_64-linux-gnu-openacc-mainline/src/gcc-mainline/libgcc/soft-fp/trunctfhf2.c:48:3: note: in expansion of macro 'FP_PACK_SEMIRAW_H' 48 | FP_PACK_SEMIRAW_H (r, R);