public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Richard Sandiford <rsandifo@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-5622] testsuite: Fix g++.dg/gomp warnings for aarch64
Date: Wed,  1 Feb 2023 09:54:02 +0000 (GMT)	[thread overview]
Message-ID: <20230201095402.EAF7B3858412@sourceware.org> (raw)

https://gcc.gnu.org/g:f3b1af49702a3d1989fbe512b004a129f2c50e07

commit r13-5622-gf3b1af49702a3d1989fbe512b004a129f2c50e07
Author: Richard Sandiford <richard.sandiford@arm.com>
Date:   Wed Feb 1 09:53:50 2023 +0000

    testsuite: Fix g++.dg/gomp warnings for aarch64
    
    A couple of tweaks to make g++.dg/gomp clean on aarch64.
    
    gcc/testsuite/
            * g++.dg/gomp/attrs-10.C: Update warning strings for aarch64.
            * g++.dg/gomp/declare-simd-8.C: Add expected warning for aarch64.

Diff:
---
 gcc/testsuite/g++.dg/gomp/attrs-10.C       | 6 +++---
 gcc/testsuite/g++.dg/gomp/declare-simd-8.C | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/g++.dg/gomp/attrs-10.C b/gcc/testsuite/g++.dg/gomp/attrs-10.C
index a78f892c237..ed0214a8de2 100644
--- a/gcc/testsuite/g++.dg/gomp/attrs-10.C
+++ b/gcc/testsuite/g++.dg/gomp/attrs-10.C
@@ -55,7 +55,7 @@ f4 (int l)
 
 int
 f5 (int l)
-{	// { dg-warning "GCC does not currently support mixed size types for 'simd' functions" "" { target aarch64*-*-* } .-1 }
+{	// { dg-warning "GCC does not currently support simdlen 8 for type 'int'" "" { target aarch64*-*-* } .-1 }
   return l + 4;
 }
 
@@ -78,7 +78,7 @@ f5 (int l)
 int
 f6 [[omp::sequence (directive (declare simd uniform (l) simdlen (8), notinbranch),
 		    omp::directive (declare simd linear (l) simdlen (8) inbranch))]] (int l)
-{	// { dg-warning "GCC does not currently support mixed size types for 'simd' functions" "" { target aarch64*-*-* } .-2 }
+{	// { dg-warning "GCC does not currently support simdlen 8 for type 'int'" "" { target aarch64*-*-* } .-2 }
   return l + 5;
 }
 
@@ -124,7 +124,7 @@ f8 (int l)
 int
 f9 [[omp::directive (declare simd uniform (l) simdlen (8)),
      omp::directive (declare variant (f8) match (construct={parallel,for}))]] (int l)
-{	// { dg-warning "GCC does not currently support mixed size types for 'simd' functions" "" { target aarch64*-*-* } .-2 }
+{	// { dg-warning "GCC does not currently support simdlen 8 for type 'int'" "" { target aarch64*-*-* } .-2 }
   return l + 8;
 }
 
diff --git a/gcc/testsuite/g++.dg/gomp/declare-simd-8.C b/gcc/testsuite/g++.dg/gomp/declare-simd-8.C
index 01c91e89091..ef183136833 100644
--- a/gcc/testsuite/g++.dg/gomp/declare-simd-8.C
+++ b/gcc/testsuite/g++.dg/gomp/declare-simd-8.C
@@ -4,6 +4,7 @@ template <int N, typename T>
 struct S {
   #pragma omp declare simd aligned(a : N * 2) aligned(b) linear(ref(b): N)
   float foo (float *a, T *&b) { return *a + *b; }
+  // { dg-warning "GCC does not currently support mixed size types for 'simd' functions" "" { target aarch64*-*-* } .-1 }
 };
 
 S<16, float> s;

                 reply	other threads:[~2023-02-01  9:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230201095402.EAF7B3858412@sourceware.org \
    --to=rsandifo@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).