Skip to content

Commit 6a79ab2

Browse files
committed
set const generic in assert_instr
1 parent 6ed8d05 commit 6a79ab2

File tree

2 files changed

+128
-128
lines changed

2 files changed

+128
-128
lines changed

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

+40-40
Original file line numberDiff line numberDiff line change
@@ -2317,7 +2317,7 @@ pub unsafe fn vcvtq_u32_f32(a: float32x4_t) -> uint32x4_t {
23172317
/// Shift Left and Insert (immediate)
23182318
#[inline]
23192319
#[target_feature(enable = "neon")]
2320-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2320+
#[cfg_attr(test, assert_instr(sli, N = 1))]
23212321
#[rustc_legacy_const_generics(2)]
23222322
pub unsafe fn vsli_n_s8<const N: i32>(a: int8x8_t, b: int8x8_t) -> int8x8_t {
23232323
static_assert_imm3!(N);
@@ -2326,7 +2326,7 @@ pub unsafe fn vsli_n_s8<const N: i32>(a: int8x8_t, b: int8x8_t) -> int8x8_t {
23262326
/// Shift Left and Insert (immediate)
23272327
#[inline]
23282328
#[target_feature(enable = "neon")]
2329-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2329+
#[cfg_attr(test, assert_instr(sli, N = 1))]
23302330
#[rustc_legacy_const_generics(2)]
23312331
pub unsafe fn vsliq_n_s8<const N: i32>(a: int8x16_t, b: int8x16_t) -> int8x16_t {
23322332
static_assert_imm3!(N);
@@ -2335,7 +2335,7 @@ pub unsafe fn vsliq_n_s8<const N: i32>(a: int8x16_t, b: int8x16_t) -> int8x16_t
23352335
/// Shift Left and Insert (immediate)
23362336
#[inline]
23372337
#[target_feature(enable = "neon")]
2338-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2338+
#[cfg_attr(test, assert_instr(sli, N = 1))]
23392339
#[rustc_legacy_const_generics(2)]
23402340
pub unsafe fn vsli_n_s16<const N: i32>(a: int16x4_t, b: int16x4_t) -> int16x4_t {
23412341
static_assert_imm4!(N);
@@ -2344,7 +2344,7 @@ pub unsafe fn vsli_n_s16<const N: i32>(a: int16x4_t, b: int16x4_t) -> int16x4_t
23442344
/// Shift Left and Insert (immediate)
23452345
#[inline]
23462346
#[target_feature(enable = "neon")]
2347-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2347+
#[cfg_attr(test, assert_instr(sli, N = 1))]
23482348
#[rustc_legacy_const_generics(2)]
23492349
pub unsafe fn vsliq_n_s16<const N: i32>(a: int16x8_t, b: int16x8_t) -> int16x8_t {
23502350
static_assert_imm4!(N);
@@ -2353,7 +2353,7 @@ pub unsafe fn vsliq_n_s16<const N: i32>(a: int16x8_t, b: int16x8_t) -> int16x8_t
23532353
/// Shift Left and Insert (immediate)
23542354
#[inline]
23552355
#[target_feature(enable = "neon")]
2356-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2356+
#[cfg_attr(test, assert_instr(sli, N = 1))]
23572357
#[rustc_legacy_const_generics(2)]
23582358
pub unsafe fn vsli_n_s32<const N: i32>(a: int32x2_t, b: int32x2_t) -> int32x2_t {
23592359
static_assert!(N: i32 where N >= 0 && N <= 31);
@@ -2362,7 +2362,7 @@ pub unsafe fn vsli_n_s32<const N: i32>(a: int32x2_t, b: int32x2_t) -> int32x2_t
23622362
/// Shift Left and Insert (immediate)
23632363
#[inline]
23642364
#[target_feature(enable = "neon")]
2365-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2365+
#[cfg_attr(test, assert_instr(sli, N = 1))]
23662366
#[rustc_legacy_const_generics(2)]
23672367
pub unsafe fn vsliq_n_s32<const N: i32>(a: int32x4_t, b: int32x4_t) -> int32x4_t {
23682368
static_assert!(N: i32 where N >= 0 && N <= 31);
@@ -2371,7 +2371,7 @@ pub unsafe fn vsliq_n_s32<const N: i32>(a: int32x4_t, b: int32x4_t) -> int32x4_t
23712371
/// Shift Left and Insert (immediate)
23722372
#[inline]
23732373
#[target_feature(enable = "neon")]
2374-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2374+
#[cfg_attr(test, assert_instr(sli, N = 1))]
23752375
#[rustc_legacy_const_generics(2)]
23762376
pub unsafe fn vsli_n_s64<const N: i32>(a: int64x1_t, b: int64x1_t) -> int64x1_t {
23772377
static_assert!(N: i32 where N >= 0 && N <= 63);
@@ -2380,7 +2380,7 @@ pub unsafe fn vsli_n_s64<const N: i32>(a: int64x1_t, b: int64x1_t) -> int64x1_t
23802380
/// Shift Left and Insert (immediate)
23812381
#[inline]
23822382
#[target_feature(enable = "neon")]
2383-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2383+
#[cfg_attr(test, assert_instr(sli, N = 1))]
23842384
#[rustc_legacy_const_generics(2)]
23852385
pub unsafe fn vsliq_n_s64<const N: i32>(a: int64x2_t, b: int64x2_t) -> int64x2_t {
23862386
static_assert!(N: i32 where N >= 0 && N <= 63);
@@ -2389,7 +2389,7 @@ pub unsafe fn vsliq_n_s64<const N: i32>(a: int64x2_t, b: int64x2_t) -> int64x2_t
23892389
/// Shift Left and Insert (immediate)
23902390
#[inline]
23912391
#[target_feature(enable = "neon")]
2392-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2392+
#[cfg_attr(test, assert_instr(sli, N = 1))]
23932393
#[rustc_legacy_const_generics(2)]
23942394
pub unsafe fn vsli_n_u8<const N: i32>(a: uint8x8_t, b: uint8x8_t) -> uint8x8_t {
23952395
static_assert_imm3!(N);
@@ -2398,7 +2398,7 @@ pub unsafe fn vsli_n_u8<const N: i32>(a: uint8x8_t, b: uint8x8_t) -> uint8x8_t {
23982398
/// Shift Left and Insert (immediate)
23992399
#[inline]
24002400
#[target_feature(enable = "neon")]
2401-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2401+
#[cfg_attr(test, assert_instr(sli, N = 1))]
24022402
#[rustc_legacy_const_generics(2)]
24032403
pub unsafe fn vsliq_n_u8<const N: i32>(a: uint8x16_t, b: uint8x16_t) -> uint8x16_t {
24042404
static_assert_imm3!(N);
@@ -2407,7 +2407,7 @@ pub unsafe fn vsliq_n_u8<const N: i32>(a: uint8x16_t, b: uint8x16_t) -> uint8x16
24072407
/// Shift Left and Insert (immediate)
24082408
#[inline]
24092409
#[target_feature(enable = "neon")]
2410-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2410+
#[cfg_attr(test, assert_instr(sli, N = 1))]
24112411
#[rustc_legacy_const_generics(2)]
24122412
pub unsafe fn vsli_n_u16<const N: i32>(a: uint16x4_t, b: uint16x4_t) -> uint16x4_t {
24132413
static_assert_imm4!(N);
@@ -2416,7 +2416,7 @@ pub unsafe fn vsli_n_u16<const N: i32>(a: uint16x4_t, b: uint16x4_t) -> uint16x4
24162416
/// Shift Left and Insert (immediate)
24172417
#[inline]
24182418
#[target_feature(enable = "neon")]
2419-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2419+
#[cfg_attr(test, assert_instr(sli, N = 1))]
24202420
#[rustc_legacy_const_generics(2)]
24212421
pub unsafe fn vsliq_n_u16<const N: i32>(a: uint16x8_t, b: uint16x8_t) -> uint16x8_t {
24222422
static_assert_imm4!(N);
@@ -2425,7 +2425,7 @@ pub unsafe fn vsliq_n_u16<const N: i32>(a: uint16x8_t, b: uint16x8_t) -> uint16x
24252425
/// Shift Left and Insert (immediate)
24262426
#[inline]
24272427
#[target_feature(enable = "neon")]
2428-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2428+
#[cfg_attr(test, assert_instr(sli, N = 1))]
24292429
#[rustc_legacy_const_generics(2)]
24302430
pub unsafe fn vsli_n_u32<const N: i32>(a: uint32x2_t, b: uint32x2_t) -> uint32x2_t {
24312431
static_assert!(N: i32 where N >= 0 && N <= 31);
@@ -2434,7 +2434,7 @@ pub unsafe fn vsli_n_u32<const N: i32>(a: uint32x2_t, b: uint32x2_t) -> uint32x2
24342434
/// Shift Left and Insert (immediate)
24352435
#[inline]
24362436
#[target_feature(enable = "neon")]
2437-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2437+
#[cfg_attr(test, assert_instr(sli, N = 1))]
24382438
#[rustc_legacy_const_generics(2)]
24392439
pub unsafe fn vsliq_n_u32<const N: i32>(a: uint32x4_t, b: uint32x4_t) -> uint32x4_t {
24402440
static_assert!(N: i32 where N >= 0 && N <= 31);
@@ -2443,7 +2443,7 @@ pub unsafe fn vsliq_n_u32<const N: i32>(a: uint32x4_t, b: uint32x4_t) -> uint32x
24432443
/// Shift Left and Insert (immediate)
24442444
#[inline]
24452445
#[target_feature(enable = "neon")]
2446-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2446+
#[cfg_attr(test, assert_instr(sli, N = 1))]
24472447
#[rustc_legacy_const_generics(2)]
24482448
pub unsafe fn vsli_n_u64<const N: i32>(a: uint64x1_t, b: uint64x1_t) -> uint64x1_t {
24492449
static_assert!(N: i32 where N >= 0 && N <= 63);
@@ -2452,7 +2452,7 @@ pub unsafe fn vsli_n_u64<const N: i32>(a: uint64x1_t, b: uint64x1_t) -> uint64x1
24522452
/// Shift Left and Insert (immediate)
24532453
#[inline]
24542454
#[target_feature(enable = "neon")]
2455-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2455+
#[cfg_attr(test, assert_instr(sli, N = 1))]
24562456
#[rustc_legacy_const_generics(2)]
24572457
pub unsafe fn vsliq_n_u64<const N: i32>(a: uint64x2_t, b: uint64x2_t) -> uint64x2_t {
24582458
static_assert!(N: i32 where N >= 0 && N <= 63);
@@ -2461,7 +2461,7 @@ pub unsafe fn vsliq_n_u64<const N: i32>(a: uint64x2_t, b: uint64x2_t) -> uint64x
24612461
/// Shift Left and Insert (immediate)
24622462
#[inline]
24632463
#[target_feature(enable = "neon")]
2464-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2464+
#[cfg_attr(test, assert_instr(sli, N = 1))]
24652465
#[rustc_legacy_const_generics(2)]
24662466
pub unsafe fn vsli_n_p8<const N: i32>(a: poly8x8_t, b: poly8x8_t) -> poly8x8_t {
24672467
static_assert_imm3!(N);
@@ -2470,7 +2470,7 @@ pub unsafe fn vsli_n_p8<const N: i32>(a: poly8x8_t, b: poly8x8_t) -> poly8x8_t {
24702470
/// Shift Left and Insert (immediate)
24712471
#[inline]
24722472
#[target_feature(enable = "neon")]
2473-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2473+
#[cfg_attr(test, assert_instr(sli, N = 1))]
24742474
#[rustc_legacy_const_generics(2)]
24752475
pub unsafe fn vsliq_n_p8<const N: i32>(a: poly8x16_t, b: poly8x16_t) -> poly8x16_t {
24762476
static_assert_imm3!(N);
@@ -2479,7 +2479,7 @@ pub unsafe fn vsliq_n_p8<const N: i32>(a: poly8x16_t, b: poly8x16_t) -> poly8x16
24792479
/// Shift Left and Insert (immediate)
24802480
#[inline]
24812481
#[target_feature(enable = "neon")]
2482-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2482+
#[cfg_attr(test, assert_instr(sli, N = 1))]
24832483
#[rustc_legacy_const_generics(2)]
24842484
pub unsafe fn vsli_n_p16<const N: i32>(a: poly16x4_t, b: poly16x4_t) -> poly16x4_t {
24852485
static_assert_imm4!(N);
@@ -2488,7 +2488,7 @@ pub unsafe fn vsli_n_p16<const N: i32>(a: poly16x4_t, b: poly16x4_t) -> poly16x4
24882488
/// Shift Left and Insert (immediate)
24892489
#[inline]
24902490
#[target_feature(enable = "neon")]
2491-
#[cfg_attr(test, assert_instr(sli, n = 1))]
2491+
#[cfg_attr(test, assert_instr(sli, N = 1))]
24922492
#[rustc_legacy_const_generics(2)]
24932493
pub unsafe fn vsliq_n_p16<const N: i32>(a: poly16x8_t, b: poly16x8_t) -> poly16x8_t {
24942494
static_assert_imm4!(N);
@@ -2498,7 +2498,7 @@ pub unsafe fn vsliq_n_p16<const N: i32>(a: poly16x8_t, b: poly16x8_t) -> poly16x
24982498
/// Shift Right and Insert (immediate)
24992499
#[inline]
25002500
#[target_feature(enable = "neon")]
2501-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2501+
#[cfg_attr(test, assert_instr(sri, N = 1))]
25022502
#[rustc_legacy_const_generics(2)]
25032503
pub unsafe fn vsri_n_s8<const N: i32>(a: int8x8_t, b: int8x8_t) -> int8x8_t {
25042504
static_assert!(N: i32 where N >= 1 && N <= 8);
@@ -2507,7 +2507,7 @@ pub unsafe fn vsri_n_s8<const N: i32>(a: int8x8_t, b: int8x8_t) -> int8x8_t {
25072507
/// Shift Right and Insert (immediate)
25082508
#[inline]
25092509
#[target_feature(enable = "neon")]
2510-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2510+
#[cfg_attr(test, assert_instr(sri, N = 1))]
25112511
#[rustc_legacy_const_generics(2)]
25122512
pub unsafe fn vsriq_n_s8<const N: i32>(a: int8x16_t, b: int8x16_t) -> int8x16_t {
25132513
static_assert!(N: i32 where N >= 1 && N <= 8);
@@ -2516,7 +2516,7 @@ pub unsafe fn vsriq_n_s8<const N: i32>(a: int8x16_t, b: int8x16_t) -> int8x16_t
25162516
/// Shift Right and Insert (immediate)
25172517
#[inline]
25182518
#[target_feature(enable = "neon")]
2519-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2519+
#[cfg_attr(test, assert_instr(sri, N = 1))]
25202520
#[rustc_legacy_const_generics(2)]
25212521
pub unsafe fn vsri_n_s16<const N: i32>(a: int16x4_t, b: int16x4_t) -> int16x4_t {
25222522
static_assert!(N: i32 where N >= 1 && N <= 16);
@@ -2525,7 +2525,7 @@ pub unsafe fn vsri_n_s16<const N: i32>(a: int16x4_t, b: int16x4_t) -> int16x4_t
25252525
/// Shift Right and Insert (immediate)
25262526
#[inline]
25272527
#[target_feature(enable = "neon")]
2528-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2528+
#[cfg_attr(test, assert_instr(sri, N = 1))]
25292529
#[rustc_legacy_const_generics(2)]
25302530
pub unsafe fn vsriq_n_s16<const N: i32>(a: int16x8_t, b: int16x8_t) -> int16x8_t {
25312531
static_assert!(N: i32 where N >= 1 && N <= 16);
@@ -2534,7 +2534,7 @@ pub unsafe fn vsriq_n_s16<const N: i32>(a: int16x8_t, b: int16x8_t) -> int16x8_t
25342534
/// Shift Right and Insert (immediate)
25352535
#[inline]
25362536
#[target_feature(enable = "neon")]
2537-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2537+
#[cfg_attr(test, assert_instr(sri, N = 1))]
25382538
#[rustc_legacy_const_generics(2)]
25392539
pub unsafe fn vsri_n_s32<const N: i32>(a: int32x2_t, b: int32x2_t) -> int32x2_t {
25402540
static_assert!(N: i32 where N >= 1 && N <= 32);
@@ -2543,7 +2543,7 @@ pub unsafe fn vsri_n_s32<const N: i32>(a: int32x2_t, b: int32x2_t) -> int32x2_t
25432543
/// Shift Right and Insert (immediate)
25442544
#[inline]
25452545
#[target_feature(enable = "neon")]
2546-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2546+
#[cfg_attr(test, assert_instr(sri, N = 1))]
25472547
#[rustc_legacy_const_generics(2)]
25482548
pub unsafe fn vsriq_n_s32<const N: i32>(a: int32x4_t, b: int32x4_t) -> int32x4_t {
25492549
static_assert!(N: i32 where N >= 1 && N <= 32);
@@ -2552,7 +2552,7 @@ pub unsafe fn vsriq_n_s32<const N: i32>(a: int32x4_t, b: int32x4_t) -> int32x4_t
25522552
/// Shift Right and Insert (immediate)
25532553
#[inline]
25542554
#[target_feature(enable = "neon")]
2555-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2555+
#[cfg_attr(test, assert_instr(sri, N = 1))]
25562556
#[rustc_legacy_const_generics(2)]
25572557
pub unsafe fn vsri_n_s64<const N: i32>(a: int64x1_t, b: int64x1_t) -> int64x1_t {
25582558
static_assert!(N: i32 where N >= 1 && N <= 64);
@@ -2561,7 +2561,7 @@ pub unsafe fn vsri_n_s64<const N: i32>(a: int64x1_t, b: int64x1_t) -> int64x1_t
25612561
/// Shift Right and Insert (immediate)
25622562
#[inline]
25632563
#[target_feature(enable = "neon")]
2564-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2564+
#[cfg_attr(test, assert_instr(sri, N = 1))]
25652565
#[rustc_legacy_const_generics(2)]
25662566
pub unsafe fn vsriq_n_s64<const N: i32>(a: int64x2_t, b: int64x2_t) -> int64x2_t {
25672567
static_assert!(N: i32 where N >= 1 && N <= 64);
@@ -2570,7 +2570,7 @@ pub unsafe fn vsriq_n_s64<const N: i32>(a: int64x2_t, b: int64x2_t) -> int64x2_t
25702570
/// Shift Right and Insert (immediate)
25712571
#[inline]
25722572
#[target_feature(enable = "neon")]
2573-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2573+
#[cfg_attr(test, assert_instr(sri, N = 1))]
25742574
#[rustc_legacy_const_generics(2)]
25752575
pub unsafe fn vsri_n_u8<const N: i32>(a: uint8x8_t, b: uint8x8_t) -> uint8x8_t {
25762576
static_assert!(N: i32 where N >= 1 && N <= 8);
@@ -2579,7 +2579,7 @@ pub unsafe fn vsri_n_u8<const N: i32>(a: uint8x8_t, b: uint8x8_t) -> uint8x8_t {
25792579
/// Shift Right and Insert (immediate)
25802580
#[inline]
25812581
#[target_feature(enable = "neon")]
2582-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2582+
#[cfg_attr(test, assert_instr(sri, N = 1))]
25832583
#[rustc_legacy_const_generics(2)]
25842584
pub unsafe fn vsriq_n_u8<const N: i32>(a: uint8x16_t, b: uint8x16_t) -> uint8x16_t {
25852585
static_assert!(N: i32 where N >= 1 && N <= 8);
@@ -2588,7 +2588,7 @@ pub unsafe fn vsriq_n_u8<const N: i32>(a: uint8x16_t, b: uint8x16_t) -> uint8x16
25882588
/// Shift Right and Insert (immediate)
25892589
#[inline]
25902590
#[target_feature(enable = "neon")]
2591-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2591+
#[cfg_attr(test, assert_instr(sri, N = 1))]
25922592
#[rustc_legacy_const_generics(2)]
25932593
pub unsafe fn vsri_n_u16<const N: i32>(a: uint16x4_t, b: uint16x4_t) -> uint16x4_t {
25942594
static_assert!(N: i32 where N >= 1 && N <= 16);
@@ -2597,7 +2597,7 @@ pub unsafe fn vsri_n_u16<const N: i32>(a: uint16x4_t, b: uint16x4_t) -> uint16x4
25972597
/// Shift Right and Insert (immediate)
25982598
#[inline]
25992599
#[target_feature(enable = "neon")]
2600-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2600+
#[cfg_attr(test, assert_instr(sri, N = 1))]
26012601
#[rustc_legacy_const_generics(2)]
26022602
pub unsafe fn vsriq_n_u16<const N: i32>(a: uint16x8_t, b: uint16x8_t) -> uint16x8_t {
26032603
static_assert!(N: i32 where N >= 1 && N <= 16);
@@ -2606,7 +2606,7 @@ pub unsafe fn vsriq_n_u16<const N: i32>(a: uint16x8_t, b: uint16x8_t) -> uint16x
26062606
/// Shift Right and Insert (immediate)
26072607
#[inline]
26082608
#[target_feature(enable = "neon")]
2609-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2609+
#[cfg_attr(test, assert_instr(sri, N = 1))]
26102610
#[rustc_legacy_const_generics(2)]
26112611
pub unsafe fn vsri_n_u32<const N: i32>(a: uint32x2_t, b: uint32x2_t) -> uint32x2_t {
26122612
static_assert!(N: i32 where N >= 1 && N <= 32);
@@ -2615,7 +2615,7 @@ pub unsafe fn vsri_n_u32<const N: i32>(a: uint32x2_t, b: uint32x2_t) -> uint32x2
26152615
/// Shift Right and Insert (immediate)
26162616
#[inline]
26172617
#[target_feature(enable = "neon")]
2618-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2618+
#[cfg_attr(test, assert_instr(sri, N = 1))]
26192619
#[rustc_legacy_const_generics(2)]
26202620
pub unsafe fn vsriq_n_u32<const N: i32>(a: uint32x4_t, b: uint32x4_t) -> uint32x4_t {
26212621
static_assert!(N: i32 where N >= 1 && N <= 32);
@@ -2624,7 +2624,7 @@ pub unsafe fn vsriq_n_u32<const N: i32>(a: uint32x4_t, b: uint32x4_t) -> uint32x
26242624
/// Shift Right and Insert (immediate)
26252625
#[inline]
26262626
#[target_feature(enable = "neon")]
2627-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2627+
#[cfg_attr(test, assert_instr(sri, N = 1))]
26282628
#[rustc_legacy_const_generics(2)]
26292629
pub unsafe fn vsri_n_u64<const N: i32>(a: uint64x1_t, b: uint64x1_t) -> uint64x1_t {
26302630
static_assert!(N: i32 where N >= 1 && N <= 64);
@@ -2633,7 +2633,7 @@ pub unsafe fn vsri_n_u64<const N: i32>(a: uint64x1_t, b: uint64x1_t) -> uint64x1
26332633
/// Shift Right and Insert (immediate)
26342634
#[inline]
26352635
#[target_feature(enable = "neon")]
2636-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2636+
#[cfg_attr(test, assert_instr(sri, N = 1))]
26372637
#[rustc_legacy_const_generics(2)]
26382638
pub unsafe fn vsriq_n_u64<const N: i32>(a: uint64x2_t, b: uint64x2_t) -> uint64x2_t {
26392639
static_assert!(N: i32 where N >= 1 && N <= 64);
@@ -2642,7 +2642,7 @@ pub unsafe fn vsriq_n_u64<const N: i32>(a: uint64x2_t, b: uint64x2_t) -> uint64x
26422642
/// Shift Right and Insert (immediate)
26432643
#[inline]
26442644
#[target_feature(enable = "neon")]
2645-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2645+
#[cfg_attr(test, assert_instr(sri, N = 1))]
26462646
#[rustc_legacy_const_generics(2)]
26472647
pub unsafe fn vsri_n_p8<const N: i32>(a: poly8x8_t, b: poly8x8_t) -> poly8x8_t {
26482648
static_assert!(N: i32 where N >= 1 && N <= 8);
@@ -2651,7 +2651,7 @@ pub unsafe fn vsri_n_p8<const N: i32>(a: poly8x8_t, b: poly8x8_t) -> poly8x8_t {
26512651
/// Shift Right and Insert (immediate)
26522652
#[inline]
26532653
#[target_feature(enable = "neon")]
2654-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2654+
#[cfg_attr(test, assert_instr(sri, N = 1))]
26552655
#[rustc_legacy_const_generics(2)]
26562656
pub unsafe fn vsriq_n_p8<const N: i32>(a: poly8x16_t, b: poly8x16_t) -> poly8x16_t {
26572657
static_assert!(N: i32 where N >= 1 && N <= 8);
@@ -2660,7 +2660,7 @@ pub unsafe fn vsriq_n_p8<const N: i32>(a: poly8x16_t, b: poly8x16_t) -> poly8x16
26602660
/// Shift Right and Insert (immediate)
26612661
#[inline]
26622662
#[target_feature(enable = "neon")]
2663-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2663+
#[cfg_attr(test, assert_instr(sri, N = 1))]
26642664
#[rustc_legacy_const_generics(2)]
26652665
pub unsafe fn vsri_n_p16<const N: i32>(a: poly16x4_t, b: poly16x4_t) -> poly16x4_t {
26662666
static_assert!(N: i32 where N >= 1 && N <= 16);
@@ -2669,7 +2669,7 @@ pub unsafe fn vsri_n_p16<const N: i32>(a: poly16x4_t, b: poly16x4_t) -> poly16x4
26692669
/// Shift Right and Insert (immediate)
26702670
#[inline]
26712671
#[target_feature(enable = "neon")]
2672-
#[cfg_attr(test, assert_instr(sri, n = 1))]
2672+
#[cfg_attr(test, assert_instr(sri, N = 1))]
26732673
#[rustc_legacy_const_generics(2)]
26742674
pub unsafe fn vsriq_n_p16<const N: i32>(a: poly16x8_t, b: poly16x8_t) -> poly16x8_t {
26752675
static_assert!(N: i32 where N >= 1 && N <= 16);

0 commit comments

Comments
 (0)