Skip to content

Commit

Permalink
try avx512vl
Browse files Browse the repository at this point in the history
  • Loading branch information
TheIronBorn committed Jul 7, 2018
1 parent 31823d7 commit cc6c887
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/coresimd/tests/rotate_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ use stdsimd_test::assert_instr;

#[inline]
#[cfg_attr(any(target_arch = "x86", target_arch = "x86_64"), target_feature(enable = "avx512f"))]
#[cfg_attr(any(target_arch = "x86", target_arch = "x86_64"), target_feature(enable = "avx512vl"))]
#[cfg_attr(any(target_arch = "x86", target_arch = "x86_64"), assert_instr(vpro))]
unsafe fn rotate_right_variable(x: u64x8) -> u64x8 {
x.rotate_right(u64x8::new(0, 1, 2, 3, 4, 5, 6, 7))
}

#[inline]
#[cfg_attr(any(target_arch = "x86", target_arch = "x86_64"), target_feature(enable = "avx512f"))]
#[cfg_attr(any(target_arch = "x86", target_arch = "x86_64"), target_feature(enable = "avx512vl"))]
#[cfg_attr(any(target_arch = "x86", target_arch = "x86_64"), assert_instr(vpro))]
unsafe fn rotate_left_variable(x: u64x8) -> u64x8 {
x.rotate_left(u64x8::new(0, 1, 2, 3, 4, 5, 6, 7))
Expand Down

0 comments on commit cc6c887

Please sign in to comment.