[cfe-commits] r92881 - /cfe/trunk/lib/Headers/xmmintrin.h
Chris Lattner
sabre at nondot.org
Wed Jan 6 16:36:41 PST 2010
Author: lattner
Date: Wed Jan 6 18:36:41 2010
New Revision: 92881
URL: http://llvm.org/viewvc/llvm-project?rev=92881&view=rev
Log:
_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.
Modified:
cfe/trunk/lib/Headers/xmmintrin.h
Modified: cfe/trunk/lib/Headers/xmmintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/xmmintrin.h?rev=92881&r1=92880&r2=92881&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/xmmintrin.h (original)
+++ cfe/trunk/lib/Headers/xmmintrin.h Wed Jan 6 18:36:41 2010
@@ -172,7 +172,7 @@
_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__))
More information about the cfe-commits
mailing list