aboutsummaryrefslogtreecommitdiff
path: root/lib/Headers/xmmintrin.h
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
commit2c48345cf9d4cfe5fe73a37de684825f6015518b (patch)
tree829de76b85a0bd9c4cf652c116ad862d3ca1f7c8 /lib/Headers/xmmintrin.h
parent53f0a1b36635cd275d3c1da84b10aea6cb1062b2 (diff)
_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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92881 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Headers/xmmintrin.h')
-rw-r--r--lib/Headers/xmmintrin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Headers/xmmintrin.h b/lib/Headers/xmmintrin.h
index 5d2bcbb98c..e27060295a 100644
--- a/lib/Headers/xmmintrin.h
+++ b/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__))