Re: [PATCH] arm: fully validate mem_noofs_operand [PR120351]

2025-08-01 Thread Richard Biener
On Thu, Jul 31, 2025 at 11:44 AM Richard Biener wrote: > > On Mon, May 19, 2025 at 6:38 PM Richard Earnshaw wrote: > > > > It's not enough to just check that a memory operand is of the form > > mem(reg); after RA we also need to validate the register being used. > > The safest way to do this is t

Re: [PATCH] arm: fully validate mem_noofs_operand [PR120351]

2025-07-31 Thread Richard Biener
On Mon, May 19, 2025 at 6:38 PM Richard Earnshaw wrote: > > It's not enough to just check that a memory operand is of the form > mem(reg); after RA we also need to validate the register being used. > The safest way to do this is to call memory_operand. I have bootstrapped/tested this on x86_64-li

[PATCH] arm: fully validate mem_noofs_operand [PR120351]

2025-05-19 Thread Richard Earnshaw
It's not enough to just check that a memory operand is of the form mem(reg); after RA we also need to validate the register being used. The safest way to do this is to call memory_operand. PR target/120351 gcc/ChangeLog: * config/arm/predicates.md (mem_noofs_operand): Also check