[cfe-commits] r82292 - /cfe/trunk/test/Sema/x86-intrinsics-headers.c

Daniel Dunbar daniel at zuster.org
Fri Sep 18 15:09:24 PDT 2009


Author: ddunbar
Date: Fri Sep 18 17:09:24 2009
New Revision: 82292

URL: http://llvm.org/viewvc/llvm-project?rev=82292&view=rev
Log:
Attempt to make a test portable.

Modified:
    cfe/trunk/test/Sema/x86-intrinsics-headers.c

Modified: cfe/trunk/test/Sema/x86-intrinsics-headers.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/x86-intrinsics-headers.c?rev=82292&r1=82291&r2=82292&view=diff

==============================================================================
--- cfe/trunk/test/Sema/x86-intrinsics-headers.c (original)
+++ cfe/trunk/test/Sema/x86-intrinsics-headers.c Fri Sep 18 17:09:24 2009
@@ -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





More information about the cfe-commits mailing list