https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118669
--- Comment #11 from Krister Walfridsson <kristerw at gcc dot gnu.org> --- FWIW, this also happens on RISC-V. You can observe it by compiling the following function with "-O3 -march=rv64gcv" float test (float x, float *ptr, int n) { for (int i = 0; i < n; ++i) x = __builtin_fmaxf (x, ptr[i]); return x; }