diff options
Diffstat (limited to 'test/Sema/x86-intrinsics-headers.c')
-rw-r--r-- | test/Sema/x86-intrinsics-headers.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/Sema/x86-intrinsics-headers.c b/test/Sema/x86-intrinsics-headers.c new file mode 100644 index 0000000..dd7dd5c --- /dev/null +++ b/test/Sema/x86-intrinsics-headers.c @@ -0,0 +1,24 @@ +// RUN: clang -fsyntax-only %s && +// RUN: clang -fsyntax-only -fno-lax-vector-conversions %s && +// RUN: clang -fsyntax-only -x c++ %s + +#if defined(i386) || defined(__x86_64__) + +# if defined(__MMX__) +#include <emmintrin.h> +#include <mm_malloc.h> +# endif + +# if defined(__SSE__) +#include <xmmintrin.h> +# endif + +# if defined(__SSE3__) +#include <pmmintrin.h> +# endif + +# if defined(__SSSE3__) +#include <tmmintrin.h> +# endif + +#endif |