public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Matthew Malcomson <matmal01@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/vendors/ARM/heads/morello)] aarch64: Fix up casesi patterns for purecap
Date: Tue, 21 Sep 2021 09:12:54 +0000 (GMT)	[thread overview]
Message-ID: <20210921091254.5B0E13858C3A@sourceware.org> (raw)

https://gcc.gnu.org/g:372364e75abc1eb302636212297f6d58ecea08d6

commit 372364e75abc1eb302636212297f6d58ecea08d6
Author: Alex Coplan <alex.coplan@arm.com>
Date:   Mon Jul 19 13:57:53 2021 +0100

    aarch64: Fix up casesi patterns for purecap
    
    We were using DImode for these scratch registers which led to assembly
    failures for jump tables on Purecap Morello.
    
    gcc/ChangeLog:
    
            * config/aarch64/aarch64.md (@casesi_dispatch<mode>): Use ADDR
            for scratch registers used to hold pointers.
            (*casesi_dispatch): Likewise.

Diff:
---
 gcc/config/aarch64/aarch64.md | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md
index ac179171809..d885eb8de3e 100644
--- a/gcc/config/aarch64/aarch64.md
+++ b/gcc/config/aarch64/aarch64.md
@@ -766,8 +766,8 @@
   [(parallel
     [(set (pc) (match_operand:ADDR 0 ""))
      (clobber (reg:CC CC_REGNUM))
-     (clobber (match_scratch:DI 2))
-     (clobber (match_scratch:DI 3))
+     (clobber (match_scratch:ADDR 2))
+     (clobber (match_scratch:ADDR 3))
      (use (label_ref:ADDR (match_operand 1 "")))])]
   "")
 
@@ -778,8 +778,8 @@
 			     (match_operand:SI 1 "register_operand" "r")]
 			UNSPEC_CASESI)))
      (clobber (reg:CC CC_REGNUM))
-     (clobber (match_scratch:DI 3 "=r"))
-     (clobber (match_scratch:DI 4 "=r"))
+     (clobber (match_scratch:ADDR 3 "=r"))
+     (clobber (match_scratch:ADDR 4 "=r"))
      (use (label_ref:ADDR (match_operand 2 "" "")))])]
   ""
   "*


                 reply	other threads:[~2021-09-21  9:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210921091254.5B0E13858C3A@sourceware.org \
    --to=matmal01@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).