https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99787
Bug ID: 99787
Summary: ICE in curr_insn_transform, at lra-constraints.c:4133
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
Target Milestone: ---
Host: x86_64-linux-gnu
Target: aarch64-linux-gnu
I see the following ICE:
$ cat big.c
_Complex foo_x_0;
int foo_n11, foo_i, foo_l;
_Complex float foo_s;
_Complex *foo_f_0_0_0;
void
foo() {
_Complex f[foo_l];
for (; foo_i; foo_i++) {
int n9;
for (; n9 < foo_l; n9++)
for (; foo_n11; foo_n11++)
foo_s += foo_f_0_0_0[n9] * 0 * foo_f_0_0_0[foo_n11];
foo_x_0 += foo_s;
}
}
$ aarch64-linux-gnu-gcc big.c -O2 -ftree-slp-vectorize -ffp-contract=on
-ffloat-store -c
big.c: In function ‘foo’:
big.c:16:1: error: unable to generate reloads for:
16 | }
| ^
(insn 155 154 156 12 (set (reg:V2DF 203)
(vec_concat:V2DF (mem:DF (plus:DI (reg/f:DI 64 sfp)
(const_int 264 [0x108])) [3 S8 A64])
(mem:DF (plus:DI (reg/f:DI 64 sfp)
(const_int 272 [0x110])) [3 S8 A128]))) 2474
{load_pair_lanesdf}
(expr_list:REG_EQUIV (mem:V2DF (plus:DI (reg/f:DI 64 sfp)
(const_int -32 [0xffffffffffffffe0])) [3 S16 A128])
(nil)))
during RTL pass: reload
big.c:16:1: internal compiler error: in curr_insn_transform, at
lra-constraints.c:4133
0x69192f _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/rtl-error.c:108
0x68a741 curr_insn_transform
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/lra-constraints.c:4133
0xa85367 lra_constraints(bool)
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/lra-constraints.c:5169
0xa6f0a2 lra(_IO_FILE*)
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/lra.c:2336
0xa2be49 do_reload
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/ira.c:5835
0xa2be49 execute
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/ira.c:6021
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.