From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7810) id 1CD91383EC66; Mon, 14 Nov 2022 13:24:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1CD91383EC66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668432256; bh=f2aKLLj/W0ol9aToys4At3n0QMeDBsH6N3to0VfHm2c=; h=From:To:Subject:Date:From; b=T76U5baJwj45tFQghOPLOiZIn3tlGIIY7xxAd9NcUN/nSQMptnBLSpDrDjFDNxLMH EvxIOleUakCnBk6e3qmDFy3UDig7/BVdTIa1UW+QAOIiW/UoYErQCCxzaJX04fNK/j xSMHMsImHaf+sc8o80ZeEvG+h0B3HReQ+0oGZDJ8= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alex Coplan 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: <20221114132416.1CD91383EC66@sourceware.org> Date: Mon, 14 Nov 2022 13:24:16 +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*