From: Eric Christopher Date: Wed, 17 Jun 2015 18:42:03 +0000 (+0000) Subject: Update comments on HLE, RTM, and ADX support for intrinsics. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4061f6e87369e225b12ab4f63f2dac11628a50f;p=clang Update comments on HLE, RTM, and ADX support for intrinsics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239925 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Headers/immintrin.h b/lib/Headers/immintrin.h index 672afff902..4194eb5910 100644 --- a/lib/Headers/immintrin.h +++ b/lib/Headers/immintrin.h @@ -136,7 +136,10 @@ _writegsbase_u64(unsigned long long __V) #include -/* FIXME: check __HLE__ as well when HLE is supported. */ +/* xtest returns non-zero if the instruction is executed within an RTM or active + * HLE region. */ +/* FIXME: This can be an either or for RTM/HLE. Deal with this when HLE is + * supported. */ static __inline__ int __attribute__((__always_inline__, __nodebug__, __target__("rtm"))) _xtest(void) { @@ -145,8 +148,8 @@ _xtest(void) #include -/* Some intrinsics inside adxintrin.h are available only if __ADX__ defined, - * whereas others are also available if __ADX__ undefined */ +/* Some intrinsics inside adxintrin.h are available only on processors with ADX, + * whereas others are also available at all times. */ #include #endif /* __IMMINTRIN_H */