From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1314) id 5E5123858CD1; Fri, 26 Jan 2024 07:35:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5E5123858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706254501; bh=D07Cqp4keB4xUaNEx2SDU19X1iVaGsgs+WL5YZHMCrY=; h=From:To:Subject:Date:From; b=lCIoYNFffeuH/Rxxodzzw5E/zq6Vp9QB0h2cYDykgCnx2xfytwArzxwcxXzwxk66f bfMDYhmRbSAPrvkG2c7NwvBjT5wcqEG6NjT90zWX13vCNbGqBIlB8v8RJwA5PHlUxo 64CDn8fekK6Bp3wrJ9D7LgQ9teqa+y91lsua9nPY= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Andrew Pinski To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-8443] testsuite/vect: Fix pr25413a.c expectations [PR109705] X-Act-Checkin: gcc X-Git-Author: Andrew Pinski X-Git-Refname: refs/heads/trunk X-Git-Oldrev: d40b3c1e439db05c835b6bd4fd5bba58fda71dd6 X-Git-Newrev: bfd6b36f08021f023e0e9223f5aea315b74a5c56 Message-Id: <20240126073501.5E5123858CD1@sourceware.org> Date: Fri, 26 Jan 2024 07:35:01 +0000 (GMT) List-Id: https://gcc.gnu.org/g:bfd6b36f08021f023e0e9223f5aea315b74a5c56 commit r14-8443-gbfd6b36f08021f023e0e9223f5aea315b74a5c56 Author: Andrew Pinski Date: Thu Jan 25 13:58:10 2024 -0800 testsuite/vect: Fix pr25413a.c expectations [PR109705] The 2 loops in octfapg_universe can and will be vectorized now after r14-333-g6d4b59a9356ac4 on targets that support multiplication in the long type. But the testcase does not check vect_long_mult for that, so this patch corrects that error and now the testcase passes correctly on aarch64-linux-gnu (with and without SVE). Built and tested on aarch64-linux-gnu (with and without SVE). gcc/testsuite/ChangeLog: PR testsuite/109705 * gcc.dg/vect/pr25413a.c: Expect 1 vectorized loops for !vect_long_mult and 2 for vect_long_mult. Signed-off-by: Andrew Pinski Diff: --- gcc/testsuite/gcc.dg/vect/pr25413a.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/vect/pr25413a.c b/gcc/testsuite/gcc.dg/vect/pr25413a.c index ffb517c9ce06..905665e5dbe8 100644 --- a/gcc/testsuite/gcc.dg/vect/pr25413a.c +++ b/gcc/testsuite/gcc.dg/vect/pr25413a.c @@ -123,6 +123,8 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */ +/* The second loop in octfapg_universe requires long multiply to do the vectorization. */ +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { ! vect_long_mult } } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" { target vect_long_mult } } } */ /* { dg-final { scan-tree-dump-times "vector alignment may not be reachable" 1 "vect" { target { ! vector_alignment_reachable } } } } */ /* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 1 "vect" { target { ! vector_alignment_reachable } } } } */