https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102062
--- Comment #3 from Nicholas Piggin <npiggin at gmail dot com> --- (In reply to Bill Schmidt from comment #2) > As expected, I get similar code when compiling either for P9 or P10. Oh I should have specified, -O2 is the only option. If I add -fvariable-expansion-in-unroller it has no effect, just to make sure. It's gcc from Debian (gcc version 11.2.0 (Debian 11.2.0-3)). Maybe they've done something to change this.