diff options
author | jmg <jmg@FreeBSD.org> | 2013-09-03 17:33:29 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2013-09-03 17:33:29 +0000 |
commit | e10c4e2adb9090fc2fe5c150e4c8dcd7b5e360ac (patch) | |
tree | 3f50e4666b3a9fe46114ce8214d5e64766419e43 /contrib/gcc/config/i386/i386.h | |
parent | 4f53813f88df44c7bf7c7c5d15d2fd3bada36ab7 (diff) | |
download | FreeBSD-src-e10c4e2adb9090fc2fe5c150e4c8dcd7b5e360ac.zip FreeBSD-src-e10c4e2adb9090fc2fe5c150e4c8dcd7b5e360ac.tar.gz |
add support to gcc for AES and PCLMUL intrinsics... This addes the
-maes option, but not the -mpclmul option as I ran out of bits in
the 32 bit flags field... You can -D__PCLMUL__ to get this, but it
won't be compatible w/ clang and modern gcc...
Reviewed by: -current, -toolchain
Diffstat (limited to 'contrib/gcc/config/i386/i386.h')
-rw-r--r-- | contrib/gcc/config/i386/i386.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/gcc/config/i386/i386.h b/contrib/gcc/config/i386/i386.h index e918fc3..1394fba 100644 --- a/contrib/gcc/config/i386/i386.h +++ b/contrib/gcc/config/i386/i386.h @@ -428,6 +428,8 @@ extern const char *host_detect_local_cpu (int argc, const char **argv); builtin_define ("__SSSE3__"); \ if (TARGET_SSE4A) \ builtin_define ("__SSE4A__"); \ + if (TARGET_AES) \ + builtin_define ("__AES__"); \ if (TARGET_SSE_MATH && TARGET_SSE) \ builtin_define ("__SSE_MATH__"); \ if (TARGET_SSE_MATH && TARGET_SSE2) \ |