Skip to content

Commit e4a940a

Browse files
committed
allow bextri64 in x86
1 parent 54eaf94 commit e4a940a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/x86/tbm.rs

-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ pub unsafe fn _bextri_u32(a: u32, start: u32, len: u32) -> u32 {
3535
/// the least significant bits of the result.
3636
#[inline(always)]
3737
#[target_feature = "+tbm"]
38-
#[cfg(not(target_arch = "x86"))]
3938
#[cfg_attr(test, assert_instr(bextr, start = 4, len = 4))]
4039
pub unsafe fn _bextri_u64(a: u64, start: u64, len: u64) -> u64 {
4140
_bextri2_u64(a, (start & 0xff_u64) | ((len & 0xff_u64) << 8_u64))
@@ -65,7 +64,6 @@ pub unsafe fn _bextri2_u32(a: u32, control: u32) -> u32 {
6564
/// be extracted, and bits [15,8] specify the length of the range.
6665
#[inline(always)]
6766
#[target_feature = "+tbm"]
68-
#[cfg(not(target_arch = "x86"))]
6967
#[cfg_attr(test, assert_instr(bextr, control = 1026))]
7068
pub unsafe fn _bextri2_u64(a: u64, control: u64) -> u64 {
7169
macro_rules! call {
@@ -286,7 +284,6 @@ mod tests {
286284
assert_eq!(r2, 0b0000_0101u32);
287285
}
288286

289-
#[cfg(not(target_arch = "x86"))]
290287
#[simd_test = "tbm"]
291288
unsafe fn _bextri_u64() {
292289
let r = tbm::_bextri2_u64(0b0101_0000u64, 1026);

0 commit comments

Comments
 (0)