Skip to content

Commit c46d848

Browse files
author
TheIronBorn
committed
try avx512vl
1 parent 31823d7 commit c46d848

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/coresimd/tests/rotate_tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ use stdsimd_test::assert_instr;
1414
// Verify that supported hardware compiles rotates into single instructions
1515

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

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

0 commit comments

Comments
 (0)