[Bug target/120351] [15/16 regression] Assemble failure on armv7-a with -mfpu=neon (ldrex r1, [s14], invalid use of NEON registers) since r15-1579-g792f97b44ffc5e

2025-05-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120351

--- Comment #7 from GCC Commits  ---
The master branch has been updated by Richard Earnshaw :

https://gcc.gnu.org/g:e5bb7a328eb71daa02d15b48d3a6c6b8cd24abc5

commit r16-733-ge5bb7a328eb71daa02d15b48d3a6c6b8cd24abc5
Author: Richard Earnshaw 
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.

[Bug target/120351] [15/16 regression] Assemble failure on armv7-a with -mfpu=neon (ldrex r1, [s14], invalid use of NEON registers) since r15-1579-g792f97b44ffc5e

2025-05-19 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120351

Richard Earnshaw  changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |rearnsha at gcc dot 
gnu.org
 Status|NEW |ASSIGNED

--- Comment #6 from Richard Earnshaw  ---
mine.

[Bug target/120351] [15/16 regression] Assemble failure on armv7-a with -mfpu=neon (ldrex r1, [s14], invalid use of NEON registers) since r15-1579-g792f97b44ffc5e

2025-05-19 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120351

Sam James  changed:

   What|Removed |Added

 CC||rearnsha at gcc dot gnu.org
   Last reconfirmed||2025-05-19
Summary|[15/16 regression] Assemble |[15/16 regression] Assemble
   |failure on armv7-a with |failure on armv7-a with
   |-mfpu=neon (ldrex r1,   |-mfpu=neon (ldrex r1,
   |[s14], invalid use of NEON  |[s14], invalid use of NEON
   |registers)  |registers) since
   ||r15-1579-g792f97b44ffc5e
 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1

--- Comment #5 from Sam James  ---
-fno-late-combine-instructions is a workaround

[Bug target/120351] [15/16 regression] Assemble failure on armv7-a with -mfpu=neon (ldrex r1, [s14], invalid use of NEON registers)

2025-05-19 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120351

Sam James  changed:

   What|Removed |Added

   Target Milestone|--- |15.2
Summary|ldrex r1, [s14], invalid|[15/16 regression] Assemble
   |use of NEON registers   |failure on armv7-a with
   ||-mfpu=neon (ldrex r1,
   ||[s14], invalid use of NEON
   ||registers)

[Bug target/120351] [15/16 regression] Assemble failure on armv7-a with -mfpu=neon (ldrex r1, [s14], invalid use of NEON registers)

2025-05-19 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120351

--- Comment #4 from Sam James  ---
For completeness, my pastes are with:

$ as --version
GNU assembler (Gentoo  p1) 2.44.50.20250518