Skip to content

Commit a12b296

Browse files
committed
correct assert_instr
1 parent 41f0d5a commit a12b296

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,7 +2433,7 @@ pub unsafe fn vdupq_lane_p16<const N: i32>(a: poly16x4_t) -> poly16x8_t {
24332433
#[target_feature(enable = "neon")]
24342434
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
24352435
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(vmov, N = 1))]
2436-
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(vmov, N = 1))]
2436+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(dup, N = 1))]
24372437
#[rustc_legacy_const_generics(1)]
24382438
pub unsafe fn vdupq_laneq_s64<const N: i32>(a: int64x2_t) -> int64x2_t {
24392439
static_assert_imm1!(N);
@@ -2445,7 +2445,7 @@ pub unsafe fn vdupq_laneq_s64<const N: i32>(a: int64x2_t) -> int64x2_t {
24452445
#[target_feature(enable = "neon")]
24462446
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
24472447
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(vmov, N = 0))]
2448-
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(vmov, N = 0))]
2448+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(dup, N = 0))]
24492449
#[rustc_legacy_const_generics(1)]
24502450
pub unsafe fn vdupq_lane_s64<const N: i32>(a: int64x1_t) -> int64x2_t {
24512451
static_assert!(N : i32 where N == 0);
@@ -2457,7 +2457,7 @@ pub unsafe fn vdupq_lane_s64<const N: i32>(a: int64x1_t) -> int64x2_t {
24572457
#[target_feature(enable = "neon")]
24582458
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
24592459
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(vmov, N = 1))]
2460-
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(vmov, N = 1))]
2460+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(dup, N = 1))]
24612461
#[rustc_legacy_const_generics(1)]
24622462
pub unsafe fn vdupq_laneq_u64<const N: i32>(a: uint64x2_t) -> uint64x2_t {
24632463
static_assert_imm1!(N);
@@ -2469,7 +2469,7 @@ pub unsafe fn vdupq_laneq_u64<const N: i32>(a: uint64x2_t) -> uint64x2_t {
24692469
#[target_feature(enable = "neon")]
24702470
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
24712471
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(vmov, N = 0))]
2472-
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(vmov, N = 0))]
2472+
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(dup, N = 0))]
24732473
#[rustc_legacy_const_generics(1)]
24742474
pub unsafe fn vdupq_lane_u64<const N: i32>(a: uint64x1_t) -> uint64x2_t {
24752475
static_assert!(N : i32 where N == 0);

crates/stdarch-gen/neon.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,7 @@ a = 1, 1, 1, 4, 1, 6, 7, 8, 1, 10, 11, 12, 13, 14, 15, 16
926926
n = HFLEN
927927
validate 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
928928

929+
aarch64 = dup
929930
arm = vmov
930931
generate int64x2_t, int64x1_t:int64x2_t, uint64x2_t, uint64x1_t:uint64x2_t
931932

0 commit comments

Comments
 (0)