[cfe-commits] r82254 - in /cfe/trunk: lib/Headers/emmintrin.h lib/Headers/mmintrin.h test/Sema/x86-intrinsics-headers.c

Anders Carlsson andersca at mac.com
Fri Sep 18 12:18:20 PDT 2009


Author: andersca
Date: Fri Sep 18 14:18:19 2009
New Revision: 82254

URL: http://llvm.org/viewvc/llvm-project?rev=82254&view=rev
Log:
Make our char vector types not be explicitly signed to match GCC and to fix compilation with C++ and -fno-lax-vector-conversions

Added:
    cfe/trunk/test/Sema/x86-intrinsics-headers.c
Modified:
    cfe/trunk/lib/Headers/emmintrin.h
    cfe/trunk/lib/Headers/mmintrin.h

Modified: cfe/trunk/lib/Headers/emmintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/emmintrin.h?rev=82254&r1=82253&r2=82254&view=diff

==============================================================================
--- cfe/trunk/lib/Headers/emmintrin.h (original)
+++ cfe/trunk/lib/Headers/emmintrin.h Fri Sep 18 14:18:19 2009
@@ -35,7 +35,7 @@
 
 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)

Modified: cfe/trunk/lib/Headers/mmintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/mmintrin.h?rev=82254&r1=82253&r2=82254&view=diff

==============================================================================
--- cfe/trunk/lib/Headers/mmintrin.h (original)
+++ cfe/trunk/lib/Headers/mmintrin.h Fri Sep 18 14:18:19 2009
@@ -32,7 +32,7 @@
 
 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)

Added: cfe/trunk/test/Sema/x86-intrinsics-headers.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/x86-intrinsics-headers.c?rev=82254&view=auto

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





More information about the cfe-commits mailing list