/* Implemented from the specification included in the Intel C++ Compiler
User Guide and Reference, version 11.0. */
-#ifndef _AVXINTRIN_H_INCLUDED
-#define _AVXINTRIN_H_INCLUDED
-
-#if !defined (__AVX__)
-# error "AVX instruction set not enabled"
-#else
-
-/* We need definitions from the SSE4.1, SSSE3, SSE3, SSE2 and SSE
- header files. */
-#include <smmintrin.h>
-
-/* AVX */
+#ifndef _IMMINTRIN_H_INCLUDED
+# error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
+#endif
/* Internal data types for implementing the intrinsics. */
typedef double __v4df __attribute__ ((__vector_size__ (32)));
{
return (__m256i) __builtin_ia32_si256_si ((__v4si)__A);
}
-
-#endif /* __AVX__ */
-
-#endif /* _AVXINTRIN_H_INCLUDED */
#define __builtin_ia32_extrqi(X, I, L) __builtin_ia32_extrqi(X, 1, 1)
#define __builtin_ia32_insertqi(X, Y, I, L) __builtin_ia32_insertqi(X, Y, 1, 1)
-/* avxintrin.h */
+/* immintrin.h */
#define __builtin_ia32_blendpd256(X, Y, M) __builtin_ia32_blendpd256(X, Y, 1)
#define __builtin_ia32_blendps256(X, Y, M) __builtin_ia32_blendps256(X, Y, 1)
#define __builtin_ia32_dpps256(X, Y, M) __builtin_ia32_dpps256(X, Y, 1)
#define __builtin_ia32_protdi(A, B) __builtin_ia32_protdi(A,1)
#define __builtin_ia32_protqi(A, B) __builtin_ia32_protqi(A,1)
-#include <avxintrin.h>
#include <wmmintrin.h>
#include <bmmintrin.h>
+#include <immintrin.h>
#include <mm3dnow.h>
#define extern
#define __inline
-#include <avxintrin.h>
#include <wmmintrin.h>
#include <bmmintrin.h>
+#include <immintrin.h>
#include <mm3dnow.h>
#define _CONCAT(x,y) x ## y
test_1x (_mm_extracti_si64, __m128i, __m128i, 1, 1)
test_2x (_mm_inserti_si64, __m128i, __m128i, __m128i, 1, 1)
-/* avxintrin.h */
+/* immintrin.h */
test_2 (_mm256_blend_pd, __m256d, __m256d, __m256d, 1)
test_2 (_mm256_blend_ps, __m256, __m256, __m256, 1)
test_2 (_mm256_dp_ps, __m256, __m256, __m256, 1)
+++ /dev/null
-/* Check that all x86 intrinsics can be included together. */
-/* { dg-do compile } */
-/* { dg-options "-O -pedantic-errors -march=k8 -m3dnow -mavx -msse5 -maes -mpclmul" } */
-
-#include <immintrin.h>
-#include <bmmintrin.h>
-#include <mm3dnow.h>
-
-int dummy;