Skip to content

Commit

Permalink
use const flags from adx feature
Browse files Browse the repository at this point in the history
  • Loading branch information
mtak- committed Apr 23, 2019
1 parent 4f12401 commit 0da3dca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/core_arch/src/x86/rtm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 0da3dca

Please sign in to comment.