public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-1340] testsuite/ix86: SSE2 is a prereq to _Float16 use
@ 2022-06-29 8:27 Jan Beulich
0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2022-06-29 8:27 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d42c1598e52ec0a33fbcc4efa39f4c299d09a3fc
commit r13-1340-gd42c1598e52ec0a33fbcc4efa39f4c299d09a3fc
Author: Jan Beulich <jbeulich@suse.com>
Date: Wed Jun 29 10:27:22 2022 +0200
testsuite/ix86: SSE2 is a prereq to _Float16 use
When enabling AVX512FP via attribute or pragma, the _Float16 type would
remain unavailable when at initialization time SSE2 wouldn't be seen as
available for use. While this may hint at a wider underlying issue (like
the feature, the type may want providing dynamically, albeit this may be
challenging in particular for functions returning _Float16 yet having
the attribute specified after their return type), for now simply make
SSE2 available when targeting ix86.
gcc/testsuite/
* gcc.target/i386/avx512fp16-reduce-op-2.c: Force SSE2 for i?86.
* gcc.target/i386/pr99464.c: Likewise.
Diff:
---
gcc/testsuite/gcc.target/i386/avx512fp16-reduce-op-2.c | 1 +
gcc/testsuite/gcc.target/i386/pr99464.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/gcc/testsuite/gcc.target/i386/avx512fp16-reduce-op-2.c b/gcc/testsuite/gcc.target/i386/avx512fp16-reduce-op-2.c
index 593340e4afa..72e4a814a76 100644
--- a/gcc/testsuite/gcc.target/i386/avx512fp16-reduce-op-2.c
+++ b/gcc/testsuite/gcc.target/i386/avx512fp16-reduce-op-2.c
@@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -mprefer-vector-width=512 -fdump-tree-optimized" } */
+/* { dg-additional-options "-msse2" { target i?86-*-* } } */
/* { dg-final { scan-tree-dump-times "\.REDUC_PLUS" 3 "optimized" } } */
/* { dg-final { scan-tree-dump-times "\.REDUC_MIN" 3 "optimized" } } */
diff --git a/gcc/testsuite/gcc.target/i386/pr99464.c b/gcc/testsuite/gcc.target/i386/pr99464.c
index 98dd938973e..3c1ac6f9a6c 100644
--- a/gcc/testsuite/gcc.target/i386/pr99464.c
+++ b/gcc/testsuite/gcc.target/i386/pr99464.c
@@ -1,6 +1,7 @@
/* PR target/99464 */
/* { dg-do compile } */
/* { dg-options "-O2" } */
+/* { dg-additional-options "-msse2" { target i?86-*-* } } */
#pragma GCC target("arch=cannonlake")
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-29 8:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-29 8:27 [gcc r13-1340] testsuite/ix86: SSE2 is a prereq to _Float16 use Jan Beulich
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).