Skip to content

Commit f03e5c5

Browse files
hsivonenworkingjubilee
authored andcommitted
Disable ARMv7 specialization of dynamic shuffles.
(encoding_rs does not use dynamic shuffles.) See #309
1 parent f14f691 commit f03e5c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/codegen/shuffle1_dyn.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ macro_rules! impl_shuffle1_dyn {
3131
if #[cfg(all(
3232
any(
3333
all(target_arch = "aarch64", target_feature = "neon"),
34-
all(target_arch = "arm", target_feature = "v7",
34+
all(target_arch = "doesnotexist", target_feature = "v7",
3535
target_feature = "neon")
3636
),
3737
any(feature = "core_arch", libcore_neon)
@@ -43,7 +43,7 @@ macro_rules! impl_shuffle1_dyn {
4343
fn shuffle1_dyn(self, indices: Self::Indices) -> Self {
4444
#[cfg(target_arch = "aarch64")]
4545
use crate::arch::aarch64::vtbl1_u8;
46-
#[cfg(target_arch = "arm")]
46+
#[cfg(target_arch = "doesnotexist")]
4747
use crate::arch::arm::vtbl1_u8;
4848

4949
// This is safe because the binary is compiled with
@@ -104,7 +104,7 @@ macro_rules! impl_shuffle1_dyn {
104104
}
105105
}
106106
}
107-
} else if #[cfg(all(target_arch = "arm", target_feature = "v7",
107+
} else if #[cfg(all(target_arch = "doesnotexist", target_feature = "v7",
108108
target_feature = "neon",
109109
any(feature = "core_arch", libcore_neon)))] {
110110
impl Shuffle1Dyn for u8x16 {

0 commit comments

Comments
 (0)