]> granicus.if.org Git - clang/commitdiff
Attempt to make a test portable.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 18 Sep 2009 22:09:24 +0000 (22:09 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 18 Sep 2009 22:09:24 +0000 (22:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82292 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/x86-intrinsics-headers.c

index be17696661251632fd73e7f5451b8dc6828f72f7..dd7dd5caf0170d975dada9ca676b7d4ed3a3a514 100644 (file)
@@ -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