Function _xtest

#[target_feature(enable = "rtm")]
pub unsafe fn _xtest() -> u8

Queries whether the processor is executing in a transactional region identified by restricted transactional memory (RTM) or hardware lock elision (HLE).

Intel's documentation