Skip to content

Commit 6e1b7a2

Browse files
committed
Fix last armv7 intriniscs, hopefully
1 parent d4574d2 commit 6e1b7a2

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ pub unsafe fn vgetq_lane_u32(v: uint32x4_t, imm5: i32) -> u32 {
12251225
#[target_feature(enable = "neon")]
12261226
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
12271227
#[rustc_args_required_const(1)]
1228-
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vmov.32", imm5 = 2))]
1228+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vmov.u8", imm5 = 2))]
12291229
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(umov, imm5 = 2))]
12301230
pub unsafe fn vget_lane_u8(v: uint8x8_t, imm5: i32) -> u8 {
12311231
if (imm5) < 0 || (imm5) > 7 {
@@ -1329,7 +1329,7 @@ pub unsafe fn vreinterpretq_u8_s8(a: int8x16_t) -> uint8x16_t {
13291329
#[inline]
13301330
#[target_feature(enable = "neon")]
13311331
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
1332-
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vshr.s8", imm3 = 1))]
1332+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vshr.u8", imm3 = 1))]
13331333
#[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 {

0 commit comments

Comments
 (0)