Skip to content

Commit 986806a

Browse files
committed
correct assert_instr
1 parent c50c9fc commit 986806a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4704,7 +4704,7 @@ pub unsafe fn vrshrn_high_n_u64<const N: i32>(a: uint32x2_t, b: uint64x2_t) -> u
47044704
/// Signed rounding shift right and accumulate
47054705
#[inline]
47064706
#[target_feature(enable = "neon")]
4707-
#[cfg_attr(test, assert_instr(nop, N = 2))]
4707+
#[cfg_attr(test, assert_instr(srsra, N = 2))]
47084708
#[rustc_legacy_const_generics(2)]
47094709
pub unsafe fn vrsrad_n_s64<const N: i32>(a: i64, b: i64) -> i64 {
47104710
static_assert!(N : i32 where N >= 1 && N <= 64);
@@ -4715,7 +4715,7 @@ pub unsafe fn vrsrad_n_s64<const N: i32>(a: i64, b: i64) -> i64 {
47154715
/// Ungisned rounding shift right and accumulate
47164716
#[inline]
47174717
#[target_feature(enable = "neon")]
4718-
#[cfg_attr(test, assert_instr(nop, N = 2))]
4718+
#[cfg_attr(test, assert_instr(ursra, N = 2))]
47194719
#[rustc_legacy_const_generics(2)]
47204720
pub unsafe fn vrsrad_n_u64<const N: i32>(a: u64, b: u64) -> u64 {
47214721
static_assert!(N : i32 where N >= 1 && N <= 64);

crates/stdarch-gen/neon.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2901,7 +2901,7 @@ b = 4
29012901
n = 2
29022902
validate 2
29032903

2904-
aarch64 = nop
2904+
aarch64 = srsra
29052905
generate i64
29062906

29072907
/// Ungisned rounding shift right and accumulate
@@ -2916,7 +2916,7 @@ b = 4
29162916
n = 2
29172917
validate 2
29182918

2919-
aarch64 = nop
2919+
aarch64 = ursra
29202920
generate u64
29212921

29222922
/// Signed Shift left

0 commit comments

Comments
 (0)