https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121034
Bug ID: 121034
Summary: [16 Regression] ICE in vect_transform_reduction
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: ktkachov at gcc dot gnu.org
CC: rguenth at gcc dot gnu.org
Target Milestone: ---
Target: aarch64
Reduced testcase:
int b, e;
char c, d;
unsigned g;
int abs(int);
void f() {
char *a = &d;
int h;
for (; e; e++) {
h = 0;
for (; h < 16; h++)
g += __builtin_abs(a[h] - c);
a += b;
}
}
Compiled for aarch64 with -O3 -mcpu=neoverse-v2 ICEs:
during GIMPLE pass: vect
foo.c: In function âfâ:
foo.c:5:6: internal compiler error: in vect_transform_reduction, at
tree-vect-loop.cc:8406
5 | void f() {
| ^
0xf26aed1e73fb __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58
0xf26aed1e74cb __libc_start_main_impl
../csu/libc-start.c:392
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.