]> granicus.if.org Git - clang/commitdiff
Make our char vector types not be explicitly signed to match GCC and to fix compilati...
authorAnders Carlsson <andersca@mac.com>
Fri, 18 Sep 2009 19:18:19 +0000 (19:18 +0000)
committerAnders Carlsson <andersca@mac.com>
Fri, 18 Sep 2009 19:18:19 +0000 (19:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82254 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/emmintrin.h
lib/Headers/mmintrin.h
test/Sema/x86-intrinsics-headers.c [new file with mode: 0644]

index b83ed5fe02743ee0aa79b261350839e662ce5296..fec01549edc50d8d3d61b2373d9e02163596df74 100644 (file)
@@ -35,7 +35,7 @@ typedef long long __m128i __attribute__((__vector_size__(16)));
 
 typedef int __v4si __attribute__((__vector_size__(16)));
 typedef short __v8hi __attribute__((__vector_size__(16)));
-typedef signed char __v16qi __attribute__((__vector_size__(16)));
+typedef char __v16qi __attribute__((__vector_size__(16)));
 
 static inline __m128d __attribute__((__always_inline__, __nodebug__))
 _mm_add_sd(__m128d a, __m128d b)
index e3cbe48ce0684bd6ab743ba98671c7923374cdfb..0f06f787b6a08fc27dd50020990196cd5f52e576 100644 (file)
@@ -32,7 +32,7 @@ typedef long long __m64 __attribute__((__vector_size__(8)));
 
 typedef int __v2si __attribute__((__vector_size__(8)));
 typedef short __v4hi __attribute__((__vector_size__(8)));
-typedef signed char __v8qi __attribute__((__vector_size__(8)));
+typedef char __v8qi __attribute__((__vector_size__(8)));
 
 static inline void __attribute__((__always_inline__, __nodebug__))
 _mm_empty(void)
diff --git a/test/Sema/x86-intrinsics-headers.c b/test/Sema/x86-intrinsics-headers.c
new file mode 100644 (file)
index 0000000..be17696
--- /dev/null
@@ -0,0 +1,9 @@
+// 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
+
+#include <emmintrin.h>
+#include <mm_malloc.h>
+#include <pmmintrin.h>
+#include <tmmintrin.h>
+#include <xmmintrin.h>