From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7810) id EBFEB38582B0; Thu, 19 Oct 2023 10:15:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EBFEB38582B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697710509; bh=2GIbLcNX7uEj3vivQg9hHF7JxJSYljBJxuE3uGninp0=; h=From:To:Subject:Date:From; b=gB3TYtDT+xlXFX6/yugXJV0vr7U2WFyh1fykwd1EbUsUUgGcnWBtX5HnUCX5VsXzs A8ecYWI2Jmmtl4lUVKamJp8g94L8oeeuFspcuprVQBkSoljlIpxG5N4SmmlAacCHPF zWaCo2GSbDCNrVaoZJubS0EQD1ZlI1jKpiYPVdQg= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Alex Coplan To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-4741] aarch64, testsuite: Tweak sve/pcs/args_9.c to allow stps X-Act-Checkin: gcc X-Git-Author: Alex Coplan X-Git-Refname: refs/heads/master X-Git-Oldrev: 583ca5f5997df6595b0c760053f4499a456b0003 X-Git-Newrev: cf776eebe86b8b75697de55a6a8ade72ce9f66c5 Message-Id: <20231019101509.EBFEB38582B0@sourceware.org> Date: Thu, 19 Oct 2023 10:15:09 +0000 (GMT) List-Id: https://gcc.gnu.org/g:cf776eebe86b8b75697de55a6a8ade72ce9f66c5 commit r14-4741-gcf776eebe86b8b75697de55a6a8ade72ce9f66c5 Author: Alex Coplan Date: Wed Oct 4 14:13:00 2023 +0100 aarch64, testsuite: Tweak sve/pcs/args_9.c to allow stps With the new ldp/stp pass enabled, there is a change in the codegen for this test as follows: add x8, sp, 16 ptrue p3.h, mul3 str p3, [x8] - str x8, [sp, 8] - str x9, [sp] + stp x9, x8, [sp] ptrue p3.d, vl8 ptrue p2.s, vl7 ptrue p1.h, vl6 i.e. we now form an stp that we were missing previously. This patch adjusts the scan-assembler such that it should pass whether or not we form the stp. gcc/testsuite/ChangeLog: * gcc.target/aarch64/sve/pcs/args_9.c: Adjust scan-assemblers to allow for stp. Diff: --- gcc/testsuite/gcc.target/aarch64/sve/pcs/args_9.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_9.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_9.c index ad9affadf02a..942a44ab4483 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_9.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_9.c @@ -45,5 +45,5 @@ caller (int64_t *x0, int16_t *x1, svbool_t p0) return svcntp_b8 (res, res); } -/* { dg-final { scan-assembler {\tptrue\t(p[0-9]+)\.b, mul3\n\tstr\t\1, \[(x[0-9]+)\]\n.*\tstr\t\2, \[sp\]\n} } } */ -/* { dg-final { scan-assembler {\tptrue\t(p[0-9]+)\.h, mul3\n\tstr\t\1, \[(x[0-9]+)\]\n.*\tstr\t\2, \[sp, 8\]\n} } } */ +/* { dg-final { scan-assembler {\tptrue\t(p[0-9]+)\.b, mul3\n\tstr\t\1, \[(x[0-9]+)\]\n.*\t(?:str\t\2, \[sp\]|stp\t\2, x[0-9]+, \[sp\])\n} } } */ +/* { dg-final { scan-assembler {\tptrue\t(p[0-9]+)\.h, mul3\n\tstr\t\1, \[(x[0-9]+)\]\n.*\t(?:str\t\2, \[sp, 8\]|stp\tx[0-9]+, \2, \[sp\])\n} } } */