From: Daniel Dunbar Date: Fri, 18 Sep 2009 22:09:24 +0000 (+0000) Subject: Attempt to make a test portable. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1131014a6e0302f8040531e227b550230703f613;p=clang Attempt to make a test portable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82292 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 #include +# endif + +# if defined(__SSE__) +#include +# endif + +# if defined(__SSE3__) #include +# endif + +# if defined(__SSSE3__) #include -#include +# endif + +#endif