summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-07 00:36:41 +0000
committerChris Lattner <sabre@nondot.org>2010-01-07 00:36:41 +0000
commit4debb32fdd739b836c10a64b8689095aaeac59d0 (patch)
treeed920015dd122e60e28352e1906d147e2bc0a8c2 /clang/lib
parent6722fc0c09c986ad203f08ed90241f14f3f801ce (diff)
downloadbcm5719-llvm-4debb32fdd739b836c10a64b8689095aaeac59d0.tar.gz
bcm5719-llvm-4debb32fdd739b836c10a64b8689095aaeac59d0.zip
_mm_xor_ps does a xor not a nxor. The other 'xor' builtins look fine,
but this one is wrong. Thanks to Tanya for noticing this. llvm-svn: 92881
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Headers/xmmintrin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Headers/xmmintrin.h b/clang/lib/Headers/xmmintrin.h
index 5d2bcbb98ca..e27060295a8 100644
--- a/clang/lib/Headers/xmmintrin.h
+++ b/clang/lib/Headers/xmmintrin.h
@@ -172,7 +172,7 @@ static inline __m128 __attribute__((__always_inline__, __nodebug__))
_mm_xor_ps(__m128 a, __m128 b)
{
typedef int __v4si __attribute__((__vector_size__(16)));
- return (__m128)((__v4si)a ^ ~(__v4si)b);
+ return (__m128)((__v4si)a ^ (__v4si)b);
}
static inline __m128 __attribute__((__always_inline__, __nodebug__))
OpenPOWER on IntegriCloud