When targeting Armv8.1 we can assume FEAT_LSE is available and can use
the atomic instructions this provides without needing to check for
support first.
Sponsored by: Arm Ltd
Differential D46159
arm64: Expand the use of Armv8.1-A atomics andrew on Jul 26 2024, 9:19 AM. Authored by Tags None Referenced Files
Details When targeting Armv8.1 we can assume FEAT_LSE is available and can use Sponsored by: Arm Ltd
Diff Detail
Event TimelineComment Actions Do we care about Arm 8.0? Or will __ARM_FEATURE_ATOMICS not be defined there? Otherwise I like it. Comment Actions https://developer.arm.com/documentation/101028/0010/Feature-test-macros
Comment Actions While it probably does not directly apply to this case, we should be very careful with similar constructions. So with the current behavior of Clang, we should consider ACLE as a definition for compiler supported extension instructions, not the target CPU. |