From 5097195fabd4ce3611fd363eeb015c176b9a63b5 Mon Sep 17 00:00:00 2001 From: Kirill Yukhin Date: Tue, 6 Oct 2015 07:29:05 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.target/i386/builtin_target.c | 4 ++++ 2 files changed, 8 insertions(+) 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) -- 2.30.2