From: Kirill Yukhin Date: Tue, 6 Oct 2015 07:29:05 +0000 (+0000) Subject: builtin_target.c: Add check for AES and PCLMUL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5097195fabd4ce3611fd363eeb015c176b9a63b5;p=gcc.git builtin_target.c: Add check for AES and PCLMUL. gcc/testsuite/ * gcc.target/i386/builtin_target.c: Add check for AES and PCLMUL. From-SVN: r228513 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3d268e7206c..a931b24adc9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-10-05 Kirill Yukhin + + * gcc.target/i386/builtin_target.c: Add check for AES and PCLMUL. + 2015-10-05 Paolo Carlini PR c++/53856 diff --git a/gcc/testsuite/gcc.target/i386/builtin_target.c b/gcc/testsuite/gcc.target/i386/builtin_target.c index 82357a7f674..de494aa67b9 100644 --- a/gcc/testsuite/gcc.target/i386/builtin_target.c +++ b/gcc/testsuite/gcc.target/i386/builtin_target.c @@ -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)