https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128717
Bug ID: 128717
Summary: powerpc64le: ICE in lra_assign, at lra-assigns.cc:1691
at -O2 with -mcpu=power10
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: shimizu2486 at gmail dot com
Target Milestone: ---
Target: powerpc64le-linux-gnu
Live reproducer: https://godbolt.org/z/8ebx6xvzr
$ cat t1.c
int f(signed char a, unsigned char b, int c) {
unsigned __int128 x = c ? a : (unsigned _BitInt(65))b;
return b & !c & x;
}
$ powerpc64le-linux-gnu-gcc -mcpu=power10 -O2 -c t1.c
during RTL pass: reload
t1.c: In function 'f':
t1.c:4:1: internal compiler error: in lra_assign, at lra-assigns.cc:1691
4 | }
| ^
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
powerpc64le trunk (372c32f9) ICE
powerpc64le trunk (028b8b62) ICE
-mcpu=power10 and -mcpu=power11 at -O2 and -O3 ICE.
-O1, -Os and -Og compile, and so do -mcpu=power9.
-mno-power10-fusion and -mno-pcrel make it compile too.
powerpc64 (big-endian) with -mcpu=power10 -O2 compiles.