summaryrefslogtreecommitdiff
path: root/clang/test/Headers/x86-intrinsics-headers.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Headers/x86-intrinsics-headers.c')
-rw-r--r--clang/test/Headers/x86-intrinsics-headers.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/Headers/x86-intrinsics-headers.c b/clang/test/Headers/x86-intrinsics-headers.c
new file mode 100644
index 0000000..bdffdde
--- /dev/null
+++ b/clang/test/Headers/x86-intrinsics-headers.c
@@ -0,0 +1,15 @@
+// RUN: %clang -fsyntax-only -ffreestanding %s
+// RUN: %clang -fsyntax-only -ffreestanding -fno-lax-vector-conversions %s
+// RUN: %clangxx -fsyntax-only -ffreestanding -x c++ %s
+
+#if defined(i386) || defined(__x86_64__)
+
+#ifdef __SSE4_2__
+// nmmintrin forwards to smmintrin.
+#include <nmmintrin.h>
+#endif
+
+// immintrin includes all other intel intrinsic headers.
+#include <immintrin.h>
+
+#endif