]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite/i386: Require AVX2 effective target in pr107432-9.c
authorUros Bizjak <ubizjak@gmail.com>
Tue, 15 Oct 2024 15:45:13 +0000 (17:45 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Tue, 15 Oct 2024 15:46:13 +0000 (17:46 +0200)
x86-64-v3 requires AVX2 effective target and AVX2 specific avx2-check.h.

gcc/testsuite/ChangeLog:

* gcc.target/i386/pr107432-9.c: Require AVX2 effective target.
Include avx2-check.h instead of avx-check.h.  Define TEST to avx2_test.

gcc/testsuite/gcc.target/i386/pr107432-9.c

index 90426c030c4e0d691dbf2cc9d83e1e93fd46ed42..861db17a5ff700a8770497a82599129d6f9ee9b2 100644 (file)
@@ -1,11 +1,13 @@
 /* { dg-do run } */
 /* { dg-options "-march=x86-64-v3 -O2 -flax-vector-conversions" } */
+/* { dg-require-effective-target avx2 } */
+
 #include <x86intrin.h>
 
-#include "avx-check.h"
+#include "avx2-check.h"
 
 #ifndef TEST
-#define TEST avx_test
+#define TEST avx2_test
 #endif
 
 typedef short __v2hi __attribute__ ((__vector_size__ (4)));