[PATCH] Fix immintrin.h to include wmmintrin.h if -mpclmul is specified
John Baldwin
jhb at freebsd.org
Tue Feb 25 09:27:35 PST 2014
The wmmintrin.h header includes two different sub-headers: one for AES support
and one for PCLMUL support. The current immintrin.h header in clang 3.4 at
least only includes wmmintrin.h if AES support is enabled. It should include
it if either AES or PCLMUL is enabled (GCC's version of immintrin.h does
this).
Index: tools/clang/lib/Headers/immintrin.h
===================================================================
--- tools/clang/lib/Headers/immintrin.h (revision 263553)
+++ tools/clang/lib/Headers/immintrin.h (revision 263554)
@@ -48,7 +48,7 @@
#include <smmintrin.h>
#endif
-#if defined (__AES__)
+#if defined (__AES__) || defined (__PCLMUL__)
#include <wmmintrin.h>
#endif
--
John Baldwin
More information about the cfe-commits
mailing list