diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-18 22:09:24 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-18 22:09:24 +0000 |
commit | 1131014a6e0302f8040531e227b550230703f613 (patch) | |
tree | dff1a77e055dd191bfba851d2b31ce8cf118d4db | |
parent | dfece5b3e76dca75a00f9c4214ed5c318de723c9 (diff) |
Attempt to make a test portable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82292 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Sema/x86-intrinsics-headers.c | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/test/Sema/x86-intrinsics-headers.c b/test/Sema/x86-intrinsics-headers.c index be17696661..dd7dd5caf0 100644 --- a/test/Sema/x86-intrinsics-headers.c +++ b/test/Sema/x86-intrinsics-headers.c @@ -1,9 +1,24 @@ -// RUN: clang-cc -triple x86_64-apple-darwin10 -fsyntax-only --mcpu=core2 %s && -// RUN: clang-cc -triple x86_64-apple-darwin10 -fsyntax-only --mcpu=core2 -fno-lax-vector-conversions %s && -// RUN: clang-cc -triple x86_64-apple-darwin10 -fsyntax-only --mcpu=core2 -x c++ %s +// 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> -#include <xmmintrin.h> +# endif + +#endif |