Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 1 | // RUN: %clang -fsyntax-only %s |
| 2 | // RUN: %clang -fsyntax-only -fno-lax-vector-conversions %s |
Daniel Dunbar | 9fde9c4 | 2010-06-29 16:52:24 +0000 | [diff] [blame] | 3 | // RUN: %clangxx -fsyntax-only -x c++ %s |
Anders Carlsson | 4bf4e30 | 2009-09-18 19:18:19 +0000 | [diff] [blame] | 4 | |
Daniel Dunbar | 1131014 | 2009-09-18 22:09:24 +0000 | [diff] [blame] | 5 | #if defined(i386) || defined(__x86_64__) |
| 6 | |
| 7 | # if defined(__MMX__) |
Anders Carlsson | 4bf4e30 | 2009-09-18 19:18:19 +0000 | [diff] [blame] | 8 | #include <emmintrin.h> |
| 9 | #include <mm_malloc.h> |
Daniel Dunbar | 1131014 | 2009-09-18 22:09:24 +0000 | [diff] [blame] | 10 | # endif |
| 11 | |
| 12 | # if defined(__SSE__) |
Anders Carlsson | 4bf4e30 | 2009-09-18 19:18:19 +0000 | [diff] [blame] | 13 | #include <xmmintrin.h> |
Daniel Dunbar | 1131014 | 2009-09-18 22:09:24 +0000 | [diff] [blame] | 14 | # endif |
| 15 | |
| 16 | # if defined(__SSE3__) |
| 17 | #include <pmmintrin.h> |
| 18 | # endif |
| 19 | |
| 20 | # if defined(__SSSE3__) |
| 21 | #include <tmmintrin.h> |
| 22 | # endif |
| 23 | |
Eric Christopher | 355c96e | 2010-03-20 01:06:48 +0000 | [diff] [blame] | 24 | # if defined(__SSE4_1__) |
| 25 | #include <smmintrin.h> |
| 26 | # endif |
| 27 | |
Eric Christopher | db59bc8 | 2010-03-20 07:48:45 +0000 | [diff] [blame] | 28 | # if defined(__SSE4_2__) |
| 29 | #include <nmmintrin.h> |
| 30 | # endif |
| 31 | |
Bruno Cardoso Lopes | 55db5b8 | 2010-08-04 22:03:36 +0000 | [diff] [blame] | 32 | # if defined(__AVX__) |
| 33 | #include <avxintrin.h> |
| 34 | # endif |
| 35 | |
Daniel Dunbar | 1131014 | 2009-09-18 22:09:24 +0000 | [diff] [blame] | 36 | #endif |