builtin_target.c: Add check for AES and PCLMUL.
authorKirill Yukhin <kirill.yukhin@intel.com>
Tue, 6 Oct 2015 07:29:05 +0000 (07:29 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Tue, 6 Oct 2015 07:29:05 +0000 (07:29 +0000)
gcc/testsuite/
* gcc.target/i386/builtin_target.c: Add check for AES and PCLMUL.

From-SVN: r228513

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/builtin_target.c

index 3d268e7206cee530c82109c6ff1029e19afe48b7..a931b24adc9893743ac652350a6194d6eedfd3df 100644 (file)
@@ -1,3 +1,7 @@
+2015-10-05  Kirill Yukhin  <kirill.yukhin@intel.com>
+
+       * gcc.target/i386/builtin_target.c: Add check for AES and PCLMUL.
+
 2015-10-05  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR c++/53856
index 82357a7f674c3879ccc3c423f039e44aec333da0..de494aa67b98aee459628d60a1758a2acd7dd6c1 100644 (file)
@@ -173,6 +173,10 @@ check_features (unsigned int ecx, unsigned int edx,
     assert (__builtin_cpu_supports ("sse2"));
   if (ecx & bit_POPCNT)
     assert (__builtin_cpu_supports ("popcnt"));
+  if (ecx & bit_AES)
+    assert (__builtin_cpu_supports ("aes"));
+  if (ecx & bit_PCLMUL)
+    assert (__builtin_cpu_supports ("pclmul"));
   if (ecx & bit_SSE3)
     assert (__builtin_cpu_supports ("sse3"));
   if (ecx & bit_SSSE3)