https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103197
Segher Boessenkool <segher at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-11-12 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #3 from Segher Boessenkool <segher at gcc dot gnu.org> --- Also, it reloads the whole address into a register, instead of just the offset. The latter is much better to do (the offset can often be shared with later insns, in this example already!) But that aside. Confirmed. It only happens for power9 and up in my testing, does your compiler default to that?