Skip to content

Commit 54eaf94

Browse files
committed
allow bextri32 in x86
1 parent 6e59980 commit 54eaf94

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/x86/macros.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,6 @@ macro_rules! assert_approx_eq {
358358
// ranges 0:7 and 8:15 are at most in range [0, 64). This macro
359359
// expands all 16 bit integers whose bits in 0:7 and 8:15 are in
360360
// that range. This results in 4096 (64 * 64) match arms.
361-
#[cfg(not(target_arch = "x86"))]
362361
macro_rules! constify_bextri2 {
363362
($v:expr, $expand:ident) => {
364363
#[cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))]

src/x86/tbm.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ extern "C" {
2626
/// the least significant bits of the result.
2727
#[inline(always)]
2828
#[target_feature = "+tbm"]
29-
#[cfg(not(target_arch = "x86"))]
3029
#[cfg_attr(test, assert_instr(bextr, start = 4, len = 4))]
3130
pub unsafe fn _bextri_u32(a: u32, start: u32, len: u32) -> u32 {
3231
_bextri2_u32(a, (start & 0xff_u32) | ((len & 0xff_u32) << 8_u32))
@@ -49,7 +48,6 @@ pub unsafe fn _bextri_u64(a: u64, start: u64, len: u64) -> u64 {
4948
/// be extracted, and bits [15,8] specify the length of the range.
5049
#[inline(always)]
5150
#[target_feature = "+tbm"]
52-
#[cfg(not(target_arch = "x86"))]
5351
#[cfg_attr(test, assert_instr(bextr, control = 1026))]
5452
pub unsafe fn _bextri2_u32(a: u32, control: u32) -> u32 {
5553
macro_rules! call {
@@ -279,7 +277,6 @@ mod tests {
279277

280278
use x86::tbm;
281279

282-
#[cfg(not(target_arch = "x86"))]
283280
#[simd_test = "tbm"]
284281
unsafe fn _bextri_u32() {
285282
let r = tbm::_bextri2_u32(0b0101_0000u32, 1026);

0 commit comments

Comments
 (0)