On 11/29/24 15:15, Andre Vieira wrote:

Address a problem we were having where we were missing on detecting uses of
vctp_vpr_generated in the analysis for 'arm_attempt_dlstp_transform' because
the use was inside a SUBREG and rtx_equal_p does not catch that.  Using
reg_overlap_mentioned_p is much more robust.

gcc/ChangeLog:

        PR target/117814
        * gcc/config/arm/arm.cc (arm_attempt_dlstp_transform): Use
        reg_overlap_mentioned_p instead of rtx_equal_p to detect uses of
        vctp_vpr_generated inside subregs.

gcc/testsuite/ChangeLog:

        PR target/117814
        * gcc.target/arm/mve/dlstp-invalid-asm.c (test10): Renamed to...
        (test10a): ... this.
        (test10b): Variation of test10a with a small change to trigger wrong
        codegen.

This is OK,

Thanks.

---
  gcc/config/arm/arm.cc                         |  3 +-
  .../gcc.target/arm/mve/dlstp-invalid-asm.c    | 37 ++++++++++++++++++-
  2 files changed, 37 insertions(+), 3 deletions(-)

Reply via email to