https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104026
ktkachov at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2022-01-14 Ever confirmed|0 |1 CC| |ktkachov at gcc dot gnu.org Target|amdgcn-amdhsa |amdgcn-amdhsa, aarch64 --- Comment #9 from ktkachov at gcc dot gnu.org --- We're also seeing this on aarch64-none-elf with: #include <cstdlib> void execute(int *y); void foo (int n) { int *b = (int *)malloc((n - 1) * sizeof(int)); execute(b); int n1 = 1.0 / (n - 1); for (int i = 0; i < n - 1; i++) { b[i] *= n1; } } compiled with -O2 -march=armv8-a+sve