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
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to