use const flags from adx feature

This commit is contained in:
tyler 2019-04-23 09:20:07 -07:00 committed by gnzlbg
parent f7a6b30a99
commit 83e4adb3df

View file

@ -75,7 +75,8 @@ pub unsafe fn _xend() {
/// [Intel's documentation](https://software.intel.com/en-us/cpp-compiler-developer-guide-and-reference-xabort).
#[inline]
#[target_feature(enable = "rtm")]
#[cfg_attr(test, assert_instr(xabort))]
#[cfg_attr(test, assert_instr(xabort, imm8 = 0x0))]
#[rustc_args_required_const(0)]
pub unsafe fn _xabort(imm8: u32) {
macro_rules! call {
($imm8:expr) => {