Skip to content

Commit 41f0d5a

Browse files
committed
correct assert_instr
1 parent de23c4e commit 41f0d5a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2528,7 +2528,7 @@ pub unsafe fn vdupq_lane_f32<const N: i32>(a: float32x2_t) -> float32x4_t {
25282528
#[inline]
25292529
#[target_feature(enable = "neon")]
25302530
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
2531-
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(vmov, N = 0))]
2531+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(str, N = 0))]
25322532
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(str, N = 0))]
25332533
#[rustc_legacy_const_generics(1)]
25342534
pub unsafe fn vdup_lane_s64<const N: i32>(a: int64x1_t) -> int64x1_t {
@@ -2540,7 +2540,7 @@ pub unsafe fn vdup_lane_s64<const N: i32>(a: int64x1_t) -> int64x1_t {
25402540
#[inline]
25412541
#[target_feature(enable = "neon")]
25422542
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
2543-
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(vmov, N = 0))]
2543+
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(str, N = 0))]
25442544
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(str, N = 0))]
25452545
#[rustc_legacy_const_generics(1)]
25462546
pub unsafe fn vdup_lane_u64<const N: i32>(a: uint64x1_t) -> uint64x1_t {

crates/stdarch-gen/neon.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ validate 0
958958
aarch64 = str
959959
generate poly64x1_t
960960

961-
arm = vmov
961+
arm = str
962962
generate int64x1_t, uint64x1_t
963963

964964
/// Set all vector lanes to the same value

0 commit comments

Comments
 (0)