From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2049) id 5B0E13858C3A; Tue, 21 Sep 2021 09:12:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5B0E13858C3A Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Matthew Malcomson To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/ARM/heads/morello)] aarch64: Fix up casesi patterns for purecap X-Act-Checkin: gcc X-Git-Author: Alex Coplan X-Git-Refname: refs/vendors/ARM/heads/morello X-Git-Oldrev: 04ebf210833cc76439731612862aa4cc22cdda7f X-Git-Newrev: 372364e75abc1eb302636212297f6d58ecea08d6 Message-Id: <20210921091254.5B0E13858C3A@sourceware.org> Date: Tue, 21 Sep 2021 09:12:54 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2021 09:12:54 -0000 https://gcc.gnu.org/g:372364e75abc1eb302636212297f6d58ecea08d6 commit 372364e75abc1eb302636212297f6d58ecea08d6 Author: Alex Coplan 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): 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 "" "")))])] "" "*