]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite/ix86: SSE2 is a prereq to _Float16 use
authorJan Beulich <jbeulich@suse.com>
Wed, 29 Jun 2022 08:27:22 +0000 (10:27 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 29 Jun 2022 08:27:22 +0000 (10:27 +0200)
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.

gcc/testsuite/gcc.target/i386/avx512fp16-reduce-op-2.c
gcc/testsuite/gcc.target/i386/pr99464.c

index 593340e4afa8861a4751b75bf2b9a83d6d390bab..72e4a814a766b6ee0d681e4173acbda1b547c515 100644 (file)
@@ -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" } } */
index 98dd938973ee1ab27cb484e5cf1d95a72348e389..3c1ac6f9a6c2a972d3a96cfc6ffeb9d2bfacf9b1 100644 (file)
@@ -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")