Re: [PATCH] explow, aarch64: Fix force-Pmode-to-mem for ILP32 [PR97269]

2021-01-04 Thread Jeff Law via Gcc-patches
On 1/4/21 4:46 AM, Richard Sandiford via Gcc-patches wrote: > This patch fixes a mode/rtx mismatch for ILP32 targets in: > > mem = force_const_mem (ptr_mode, imm); > > where imm can be Pmode rather than ptr_mode. > > The patch uses convert_memory_address to convert the Pmode address > to

[PATCH] explow, aarch64: Fix force-Pmode-to-mem for ILP32 [PR97269]

2021-01-04 Thread Richard Sandiford via Gcc-patches
This patch fixes a mode/rtx mismatch for ILP32 targets in: mem = force_const_mem (ptr_mode, imm); where imm can be Pmode rather than ptr_mode. The patch uses convert_memory_address to convert the Pmode address to ptr_mode before the call. However, immediate addresses can in general co