From: "Maciej W. Rozycki" <macro@embecosm.com>
To: Rainer Orth <ro@cebitec.uni-bielefeld.de>,
Mike Stump <mikestump@comcast.net>
Cc: gcc-patches@gcc.gnu.org
Subject: [PATCH 1/3] testsuite: Add check for vectors of 128 bits being supported
Date: Thu, 6 Jul 2023 22:35:54 +0100 (BST) [thread overview]
Message-ID: <alpine.DEB.2.20.2307062144220.28892@tpp.orcam.me.uk> (raw)
In-Reply-To: <alpine.DEB.2.20.2307062118070.28892@tpp.orcam.me.uk>
Similarly to checks for vectors of 32 bits and 64 bits being supported
add one for vectors of 128 bits.
gcc/testsuite/
* lib/target-supports.exp (check_effective_target_vect128): New
procedure.
---
gcc/testsuite/lib/target-supports.exp | 6 ++++++
1 file changed, 6 insertions(+)
gcc-test-effective-target-vect128.diff
Index: gcc/gcc/testsuite/lib/target-supports.exp
===================================================================
--- gcc.orig/gcc/testsuite/lib/target-supports.exp
+++ gcc/gcc/testsuite/lib/target-supports.exp
@@ -8599,6 +8599,12 @@ proc check_effective_target_vect_variabl
return [expr { [lindex [available_vector_sizes] 0] == 0 }]
}
+# Return 1 if the target supports vectors of 128 bits.
+
+proc check_effective_target_vect128 { } {
+ return [expr { [lsearch -exact [available_vector_sizes] 128] >= 0 }]
+}
+
# Return 1 if the target supports vectors of 64 bits.
proc check_effective_target_vect64 { } {
next prev parent reply other threads:[~2023-07-06 21:35 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-06 21:35 [PATCH 0/3] testsuite: Exclude vector tests for unsupported targets Maciej W. Rozycki
2023-07-06 21:35 ` Maciej W. Rozycki [this message]
2023-07-07 6:24 ` [PATCH 1/3] testsuite: Add check for vectors of 128 bits being supported Richard Biener
2023-07-11 15:00 ` Maciej W. Rozycki
2023-07-06 21:36 ` [PATCH 2/3] testsuite: Require 128-bit vectors for bb-slp-pr95839.c Maciej W. Rozycki
2023-07-07 6:33 ` Richard Biener
2023-07-11 15:01 ` Maciej W. Rozycki
2023-07-12 7:15 ` Richard Biener
2023-07-19 14:34 ` Maciej W. Rozycki
2023-07-20 7:15 ` Richard Biener
2023-07-20 9:16 ` Maciej W. Rozycki
2023-07-20 12:09 ` Richard Biener
2023-07-20 13:02 ` Maciej W. Rozycki
2023-07-06 21:36 ` [PATCH 3/3] testsuite: Require vectors of doubles for pr97428.c Maciej W. Rozycki
2023-07-07 6:33 ` Richard Biener
2023-07-11 15:01 ` Maciej W. Rozycki
2023-07-12 7:15 ` Richard Biener
2023-07-19 10:29 ` Maciej W. Rozycki
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=alpine.DEB.2.20.2307062144220.28892@tpp.orcam.me.uk \
--to=macro@embecosm.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=mikestump@comcast.net \
--cc=ro@cebitec.uni-bielefeld.de \
/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).