This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Add avx5124fmaps,avx5124vnniw to sse-22.c target pragma (PR target/78451)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>, Andrew Senkevich <andrew dot n dot senkevich at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 22 Nov 2016 17:12:17 +0100
- Subject: [PATCH] Add avx5124fmaps,avx5124vnniw to sse-22.c target pragma (PR target/78451)
- Authentication-results: sourceware.org; auth=none
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
As mentioned in the PR, these 2 ISAs were added to just the first of the two
Intel specific target pragmas (the first one is used in the sse-22.c test
itself, the second one when it is included from sse-22a.c).
Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
2016-11-22 Jakub Jelinek <jakub@redhat.com>
PR target/78451
* gcc.target/i386/sse-22.c: Add avx5124fmaps,avx5124vnniw to
GCC target pragma before including immintrin.h.
--- gcc/testsuite/gcc.target/i386/sse-22.c.jj 2016-11-18 20:04:24.000000000 +0100
+++ gcc/testsuite/gcc.target/i386/sse-22.c 2016-11-22 12:31:43.721234017 +0100
@@ -218,7 +218,7 @@ test_4 (_mm_cmpestrz, int, __m128i, int,
/* immintrin.h (AVX/AVX2/RDRND/FSGSBASE/F16C/RTM/AVX512F/SHA) */
#ifdef DIFFERENT_PRAGMAS
-#pragma GCC target ("avx,avx2,rdrnd,fsgsbase,f16c,rtm,avx512f,avx512er,avx512cd,avx512pf,sha,avx512vl,avx512bw,avx512dq,avx512ifma,avx512vbmi")
+#pragma GCC target ("avx,avx2,rdrnd,fsgsbase,f16c,rtm,avx512f,avx512er,avx512cd,avx512pf,sha,avx512vl,avx512bw,avx512dq,avx512ifma,avx512vbmi,avx5124fmaps,avx5124vnniw")
#endif
#include <immintrin.h>
test_1 (_cvtss_sh, unsigned short, float, 1)
Jakub