From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2109) id 4EFF73858284; Tue, 22 Nov 2022 12:43:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4EFF73858284 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669120982; bh=f2aKLLj/W0ol9aToys4At3n0QMeDBsH6N3to0VfHm2c=; h=From:To:Subject:Date:From; b=qUx0fdQslZDTTHweZ+IGaxdxRg88PFge/8J/+T72lHxl7VVW3bBdJ/7kqzIvYNnwP Q6HcMSDVKxnKdqruvgWDSN78a5A04Y6+XYmc7Yi21zqc9g9G9d14W9g+ub2UUMx5qD OuhxOpT0OcelRWN/WEoSpcNBJHGSfG5FDaQX+JxI= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Stam Markianos-Wright To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/ARM/heads/morello)] morello testsuite: Fix up const-null.c test X-Act-Checkin: gcc X-Git-Author: Alex Coplan X-Git-Refname: refs/vendors/ARM/heads/morello X-Git-Oldrev: d8b6037e5336e1990413229358884dada7eadfc5 X-Git-Newrev: d11f8e14fe75fd148e42464cc0b489e2de8b7574 Message-Id: <20221122124302.4EFF73858284@sourceware.org> Date: Tue, 22 Nov 2022 12:43:02 +0000 (GMT) List-Id: https://gcc.gnu.org/g:d11f8e14fe75fd148e42464cc0b489e2de8b7574 commit d11f8e14fe75fd148e42464cc0b489e2de8b7574 Author: Alex Coplan Date: Tue Nov 8 13:42:03 2022 +0000 morello testsuite: Fix up const-null.c test For this test, when compiling for base AArch64 we generate mov x0, 0, but on purecap we generate mov x0, xzr. Either is fine, so accept both in the check-function-bodies pattern. Diff: --- gcc/testsuite/gcc.target/aarch64/morello/const-null.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/aarch64/morello/const-null.c b/gcc/testsuite/gcc.target/aarch64/morello/const-null.c index dc7d186e2e8..815987254d3 100644 --- a/gcc/testsuite/gcc.target/aarch64/morello/const-null.c +++ b/gcc/testsuite/gcc.target/aarch64/morello/const-null.c @@ -7,7 +7,7 @@ /* ** test_ret: -** mov x0, xzr +** mov x0, (0|xzr) ** ret */ void*