https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120351
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Earnshaw <rearn...@gcc.gnu.org>: https://gcc.gnu.org/g:e5bb7a328eb71daa02d15b48d3a6c6b8cd24abc5 commit r16-733-ge5bb7a328eb71daa02d15b48d3a6c6b8cd24abc5 Author: Richard Earnshaw <rearn...@arm.com> Date: Mon May 19 16:19:39 2025 +0100 arm: fully validate mem_noofs_operand [PR120351] 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 the op is a valid memory_operand. gcc/testsuite/ChangeLog: * gcc.target/arm/pr120351.c: New test.