summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/Headers/immintrin.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/clang/lib/Headers/immintrin.h b/clang/lib/Headers/immintrin.h
index 672afff902a..4194eb5910a 100644
--- a/clang/lib/Headers/immintrin.h
+++ b/clang/lib/Headers/immintrin.h
@@ -136,7 +136,10 @@ _writegsbase_u64(unsigned long long __V)
#include <rtmintrin.h>
-/* 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 <shaintrin.h>
-/* 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 <adxintrin.h>
#endif /* __IMMINTRIN_H */
OpenPOWER on IntegriCloud