[Bug target/112970] LoongArch: Suboptimal code when the address and the value of an array element are both used
xry111 at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 12 06:55:03 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112970
--- Comment #2 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
(In reply to Xi Ruoyao from comment #1)
> With -mexplicit-relocs=auto the generated code is sub-optimal as well:
I mean "always", not "auto".
> pcalau12i $r12,%pc_hi20(.LANCHOR0)
> addi.d $r12,$r12,%pc_lo12(.LANCHOR0)
> ld.wu $r5,$r12,4
> addi.d $r4,$r12,4
More information about the Gcc-bugs
mailing list