https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100604
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target|riscv,mips |riscv-*-*,mips64r6-*-* Keywords| |wrong-code --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think this comes from emit-rtl.c: /* If MEMREF is a LO_SUM and the offset is within the alignment of the object, we can merge it into the LO_SUM. */ if (GET_MODE (memref) != BLKmode && GET_CODE (addr) == LO_SUM && known_in_range_p (offset, 0, (GET_MODE_ALIGNMENT (GET_MODE (memref)) / BITS_PER_UNIT))) addr = gen_rtx_LO_SUM (address_mode, XEXP (addr, 0), plus_constant (address_mode, XEXP (addr, 1), offset));