Skip to content

Commit f96b107

Browse files
committed
Fix last aarch intriniscs, hopefully
1 parent d87f8a3 commit f96b107

File tree

1 file changed

+3
-3
lines changed
  • crates/core_arch/src/arm/neon

1 file changed

+3
-3
lines changed

crates/core_arch/src/arm/neon/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ pub unsafe fn vtbx4_p8(a: poly8x8_t, b: poly8x8x4_t, c: uint8x8_t) -> poly8x8_t
11621162
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
11631163
#[rustc_args_required_const(1)]
11641164
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vmov.32", imm5 = 1))]
1165-
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(umov, imm5 = 1))]
1165+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(mov, imm5 = 1))]
11661166
// Based on the discussion in https://github.com/rust-lang/stdarch/pull/792
11671167
// `mov` seems to be an acceptable intrinsic to compile to
11681168
// #[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(vmov, imm5 = 1))]
@@ -1211,7 +1211,7 @@ pub unsafe fn vgetq_lane_u16(v: uint16x8_t, imm5: i32) -> u16 {
12111211
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
12121212
#[rustc_args_required_const(1)]
12131213
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vmov.u32", imm5 = 2))]
1214-
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(umov, imm5 = 2))]
1214+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(mov, imm5 = 2))]
12151215
pub unsafe fn vgetq_lane_u32(v: uint32x4_t, imm5: i32) -> u32 {
12161216
if (imm5) < 0 || (imm5) > 3 {
12171217
unreachable_unchecked()
@@ -1330,7 +1330,7 @@ pub unsafe fn vreinterpretq_u8_s8(a: int8x16_t) -> uint8x16_t {
13301330
#[target_feature(enable = "neon")]
13311331
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
13321332
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vshr.s8", imm3 = 1))]
1333-
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr("vshr", imm3 = 1))]
1333+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr("ushr", imm3 = 1))]
13341334
#[rustc_args_required_const(1)]
13351335
pub unsafe fn vshrq_n_u8(a: uint8x16_t, imm3: i32) -> uint8x16_t {
13361336
if imm3 < 0 || imm3 > 7 {

0 commit comments

Comments
 (0)