public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Tamar Christina <tnfchris@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-5308] signbit-2: make test check for scalar or vector versions Date: Tue, 16 Nov 2021 15:40:17 +0000 (GMT) [thread overview] Message-ID: <20211116154017.DCC173858D35@sourceware.org> (raw) https://gcc.gnu.org/g:9836e907c4f20ab7638a5125e63634afafc772e7 commit r12-5308-g9836e907c4f20ab7638a5125e63634afafc772e7 Author: Tamar Christina <tamar.christina@arm.com> Date: Tue Nov 16 15:38:28 2021 +0000 signbit-2: make test check for scalar or vector versions This updates the signbit-2 test to check for the scalar optimization if the target does not support vectorization. gcc/testsuite/ChangeLog: * gcc.dg/signbit-2.c: CHeck vect or scalar. Diff: --- gcc/testsuite/gcc.dg/signbit-2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/signbit-2.c b/gcc/testsuite/gcc.dg/signbit-2.c index d8501e9b7a2..b609f67dc9f 100644 --- a/gcc/testsuite/gcc.dg/signbit-2.c +++ b/gcc/testsuite/gcc.dg/signbit-2.c @@ -19,5 +19,6 @@ void fun2(int32_t *x, int n) x[i] = (-x[i]) >> 30; } -/* { dg-final { scan-tree-dump {\s+>\s+\{ 0, 0, 0(, 0)+ \}} optimized } } */ +/* { dg-final { scan-tree-dump {\s+>\s+\{ 0(, 0)+ \}} optimized { target vect_int } } } */ +/* { dg-final { scan-tree-dump {\s+>\s+0} optimized { target { ! vect_int } } } } */ /* { dg-final { scan-tree-dump-not {\s+>>\s+31} optimized } } */
reply other threads:[~2021-11-16 15:40 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=20211116154017.DCC173858D35@sourceware.org \ --to=tnfchris@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: linkBe 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).