@@ -2320,7 +2320,7 @@ pub unsafe fn vcvtq_u32_f32(a: float32x4_t) -> uint32x4_t {
2320
2320
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2321
2321
#[ rustc_legacy_const_generics( 2 ) ]
2322
2322
pub unsafe fn vsli_n_s8 < const N : i32 > ( a : int8x8_t , b : int8x8_t ) -> int8x8_t {
2323
- assert ! ( 0 <= N && N <= 7 , "must have 0 ≤ N ≤ 7, but N = {}" , N ) ;
2323
+ static_assert_imm3 ! ( N ) ;
2324
2324
vsli_n_s8_ ( a, b, N )
2325
2325
}
2326
2326
/// Shift Left and Insert (immediate)
@@ -2329,7 +2329,7 @@ pub unsafe fn vsli_n_s8<const N: i32>(a: int8x8_t, b: int8x8_t) -> int8x8_t {
2329
2329
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2330
2330
#[ rustc_legacy_const_generics( 2 ) ]
2331
2331
pub unsafe fn vsliq_n_s8 < const N : i32 > ( a : int8x16_t , b : int8x16_t ) -> int8x16_t {
2332
- assert ! ( 0 <= N && N <= 7 , "must have 0 ≤ N ≤ 7, but N = {}" , N ) ;
2332
+ static_assert_imm3 ! ( N ) ;
2333
2333
vsliq_n_s8_ ( a, b, N )
2334
2334
}
2335
2335
/// Shift Left and Insert (immediate)
@@ -2338,7 +2338,7 @@ pub unsafe fn vsliq_n_s8<const N: i32>(a: int8x16_t, b: int8x16_t) -> int8x16_t
2338
2338
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2339
2339
#[ rustc_legacy_const_generics( 2 ) ]
2340
2340
pub unsafe fn vsli_n_s16 < const N : i32 > ( a : int16x4_t , b : int16x4_t ) -> int16x4_t {
2341
- assert ! ( 0 <= N && N <= 15 , "must have 0 ≤ N ≤ 15, but N = {}" , N ) ;
2341
+ static_assert_imm4 ! ( N ) ;
2342
2342
vsli_n_s16_ ( a, b, N )
2343
2343
}
2344
2344
/// Shift Left and Insert (immediate)
@@ -2347,7 +2347,7 @@ pub unsafe fn vsli_n_s16<const N: i32>(a: int16x4_t, b: int16x4_t) -> int16x4_t
2347
2347
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2348
2348
#[ rustc_legacy_const_generics( 2 ) ]
2349
2349
pub unsafe fn vsliq_n_s16 < const N : i32 > ( a : int16x8_t , b : int16x8_t ) -> int16x8_t {
2350
- assert ! ( 0 <= N && N <= 15 , "must have 0 ≤ N ≤ 15, but N = {}" , N ) ;
2350
+ static_assert_imm4 ! ( N ) ;
2351
2351
vsliq_n_s16_ ( a, b, N )
2352
2352
}
2353
2353
/// Shift Left and Insert (immediate)
@@ -2356,7 +2356,7 @@ pub unsafe fn vsliq_n_s16<const N: i32>(a: int16x8_t, b: int16x8_t) -> int16x8_t
2356
2356
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2357
2357
#[ rustc_legacy_const_generics( 2 ) ]
2358
2358
pub unsafe fn vsli_n_s32 < const N : i32 > ( a : int32x2_t , b : int32x2_t ) -> int32x2_t {
2359
- assert ! ( 0 <= N && N <= 31 , "must have 0 ≤ N ≤ 31, but N = {}" , N ) ;
2359
+ static_assert ! ( N : i32 where N >= 0 && N <= 31 ) ;
2360
2360
vsli_n_s32_ ( a, b, N )
2361
2361
}
2362
2362
/// Shift Left and Insert (immediate)
@@ -2365,7 +2365,7 @@ pub unsafe fn vsli_n_s32<const N: i32>(a: int32x2_t, b: int32x2_t) -> int32x2_t
2365
2365
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2366
2366
#[ rustc_legacy_const_generics( 2 ) ]
2367
2367
pub unsafe fn vsliq_n_s32 < const N : i32 > ( a : int32x4_t , b : int32x4_t ) -> int32x4_t {
2368
- assert ! ( 0 <= N && N <= 31 , "must have 0 ≤ N ≤ 31, but N = {}" , N ) ;
2368
+ static_assert ! ( N : i32 where N >= 0 && N <= 31 ) ;
2369
2369
vsliq_n_s32_ ( a, b, N )
2370
2370
}
2371
2371
/// Shift Left and Insert (immediate)
@@ -2374,7 +2374,7 @@ pub unsafe fn vsliq_n_s32<const N: i32>(a: int32x4_t, b: int32x4_t) -> int32x4_t
2374
2374
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2375
2375
#[ rustc_legacy_const_generics( 2 ) ]
2376
2376
pub unsafe fn vsli_n_s64 < const N : i32 > ( a : int64x1_t , b : int64x1_t ) -> int64x1_t {
2377
- assert ! ( 0 <= N && N <= 63 , "must have 0 ≤ N ≤ 63, but N = {}" , N ) ;
2377
+ static_assert ! ( N : i32 where N >= 0 && N <= 63 ) ;
2378
2378
vsli_n_s64_ ( a, b, N )
2379
2379
}
2380
2380
/// Shift Left and Insert (immediate)
@@ -2383,7 +2383,7 @@ pub unsafe fn vsli_n_s64<const N: i32>(a: int64x1_t, b: int64x1_t) -> int64x1_t
2383
2383
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2384
2384
#[ rustc_legacy_const_generics( 2 ) ]
2385
2385
pub unsafe fn vsliq_n_s64 < const N : i32 > ( a : int64x2_t , b : int64x2_t ) -> int64x2_t {
2386
- assert ! ( 0 <= N && N <= 63 , "must have 0 ≤ N ≤ 63, but N = {}" , N ) ;
2386
+ static_assert ! ( N : i32 where N >= 0 && N <= 63 ) ;
2387
2387
vsliq_n_s64_ ( a, b, N )
2388
2388
}
2389
2389
/// Shift Left and Insert (immediate)
@@ -2392,7 +2392,7 @@ pub unsafe fn vsliq_n_s64<const N: i32>(a: int64x2_t, b: int64x2_t) -> int64x2_t
2392
2392
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2393
2393
#[ rustc_legacy_const_generics( 2 ) ]
2394
2394
pub unsafe fn vsli_n_u8 < const N : i32 > ( a : uint8x8_t , b : uint8x8_t ) -> uint8x8_t {
2395
- assert ! ( 0 <= N && N <= 7 , "must have 0 ≤ N ≤ 7, but N = {}" , N ) ;
2395
+ static_assert_imm3 ! ( N ) ;
2396
2396
transmute ( vsli_n_s8_ ( transmute ( a) , transmute ( b) , N ) )
2397
2397
}
2398
2398
/// Shift Left and Insert (immediate)
@@ -2401,7 +2401,7 @@ pub unsafe fn vsli_n_u8<const N: i32>(a: uint8x8_t, b: uint8x8_t) -> uint8x8_t {
2401
2401
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2402
2402
#[ rustc_legacy_const_generics( 2 ) ]
2403
2403
pub unsafe fn vsliq_n_u8 < const N : i32 > ( a : uint8x16_t , b : uint8x16_t ) -> uint8x16_t {
2404
- assert ! ( 0 <= N && N <= 7 , "must have 0 ≤ N ≤ 7, but N = {}" , N ) ;
2404
+ static_assert_imm3 ! ( N ) ;
2405
2405
transmute ( vsliq_n_s8_ ( transmute ( a) , transmute ( b) , N ) )
2406
2406
}
2407
2407
/// Shift Left and Insert (immediate)
@@ -2410,7 +2410,7 @@ pub unsafe fn vsliq_n_u8<const N: i32>(a: uint8x16_t, b: uint8x16_t) -> uint8x16
2410
2410
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2411
2411
#[ rustc_legacy_const_generics( 2 ) ]
2412
2412
pub unsafe fn vsli_n_u16 < const N : i32 > ( a : uint16x4_t , b : uint16x4_t ) -> uint16x4_t {
2413
- assert ! ( 0 <= N && N <= 15 , "must have 0 ≤ N ≤ 15, but N = {}" , N ) ;
2413
+ static_assert_imm4 ! ( N ) ;
2414
2414
transmute ( vsli_n_s16_ ( transmute ( a) , transmute ( b) , N ) )
2415
2415
}
2416
2416
/// Shift Left and Insert (immediate)
@@ -2419,7 +2419,7 @@ pub unsafe fn vsli_n_u16<const N: i32>(a: uint16x4_t, b: uint16x4_t) -> uint16x4
2419
2419
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2420
2420
#[ rustc_legacy_const_generics( 2 ) ]
2421
2421
pub unsafe fn vsliq_n_u16 < const N : i32 > ( a : uint16x8_t , b : uint16x8_t ) -> uint16x8_t {
2422
- assert ! ( 0 <= N && N <= 15 , "must have 0 ≤ N ≤ 15, but N = {}" , N ) ;
2422
+ static_assert_imm4 ! ( N ) ;
2423
2423
transmute ( vsliq_n_s16_ ( transmute ( a) , transmute ( b) , N ) )
2424
2424
}
2425
2425
/// Shift Left and Insert (immediate)
@@ -2428,7 +2428,7 @@ pub unsafe fn vsliq_n_u16<const N: i32>(a: uint16x8_t, b: uint16x8_t) -> uint16x
2428
2428
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2429
2429
#[ rustc_legacy_const_generics( 2 ) ]
2430
2430
pub unsafe fn vsli_n_u32 < const N : i32 > ( a : uint32x2_t , b : uint32x2_t ) -> uint32x2_t {
2431
- assert ! ( 0 <= N && N <= 31 , "must have 0 ≤ N ≤ 31, but N = {}" , N ) ;
2431
+ static_assert ! ( N : i32 where N >= 0 && N <= 31 ) ;
2432
2432
transmute ( vsli_n_s32_ ( transmute ( a) , transmute ( b) , N ) )
2433
2433
}
2434
2434
/// Shift Left and Insert (immediate)
@@ -2437,7 +2437,7 @@ pub unsafe fn vsli_n_u32<const N: i32>(a: uint32x2_t, b: uint32x2_t) -> uint32x2
2437
2437
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2438
2438
#[ rustc_legacy_const_generics( 2 ) ]
2439
2439
pub unsafe fn vsliq_n_u32 < const N : i32 > ( a : uint32x4_t , b : uint32x4_t ) -> uint32x4_t {
2440
- assert ! ( 0 <= N && N <= 31 , "must have 0 ≤ N ≤ 31, but N = {}" , N ) ;
2440
+ static_assert ! ( N : i32 where N >= 0 && N <= 31 ) ;
2441
2441
transmute ( vsliq_n_s32_ ( transmute ( a) , transmute ( b) , N ) )
2442
2442
}
2443
2443
/// Shift Left and Insert (immediate)
@@ -2446,7 +2446,7 @@ pub unsafe fn vsliq_n_u32<const N: i32>(a: uint32x4_t, b: uint32x4_t) -> uint32x
2446
2446
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2447
2447
#[ rustc_legacy_const_generics( 2 ) ]
2448
2448
pub unsafe fn vsli_n_u64 < const N : i32 > ( a : uint64x1_t , b : uint64x1_t ) -> uint64x1_t {
2449
- assert ! ( 0 <= N && N <= 63 , "must have 0 ≤ N ≤ 63, but N = {}" , N ) ;
2449
+ static_assert ! ( N : i32 where N >= 0 && N <= 63 ) ;
2450
2450
transmute ( vsli_n_s64_ ( transmute ( a) , transmute ( b) , N ) )
2451
2451
}
2452
2452
/// Shift Left and Insert (immediate)
@@ -2455,7 +2455,7 @@ pub unsafe fn vsli_n_u64<const N: i32>(a: uint64x1_t, b: uint64x1_t) -> uint64x1
2455
2455
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2456
2456
#[ rustc_legacy_const_generics( 2 ) ]
2457
2457
pub unsafe fn vsliq_n_u64 < const N : i32 > ( a : uint64x2_t , b : uint64x2_t ) -> uint64x2_t {
2458
- assert ! ( 0 <= N && N <= 63 , "must have 0 ≤ N ≤ 63, but N = {}" , N ) ;
2458
+ static_assert ! ( N : i32 where N >= 0 && N <= 63 ) ;
2459
2459
transmute ( vsliq_n_s64_ ( transmute ( a) , transmute ( b) , N ) )
2460
2460
}
2461
2461
/// Shift Left and Insert (immediate)
@@ -2464,7 +2464,7 @@ pub unsafe fn vsliq_n_u64<const N: i32>(a: uint64x2_t, b: uint64x2_t) -> uint64x
2464
2464
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2465
2465
#[ rustc_legacy_const_generics( 2 ) ]
2466
2466
pub unsafe fn vsli_n_p8 < const N : i32 > ( a : poly8x8_t , b : poly8x8_t ) -> poly8x8_t {
2467
- assert ! ( 0 <= N && N <= 7 , "must have 0 ≤ N ≤ 7, but N = {}" , N ) ;
2467
+ static_assert_imm3 ! ( N ) ;
2468
2468
transmute ( vsli_n_s8_ ( transmute ( a) , transmute ( b) , N ) )
2469
2469
}
2470
2470
/// Shift Left and Insert (immediate)
@@ -2473,7 +2473,7 @@ pub unsafe fn vsli_n_p8<const N: i32>(a: poly8x8_t, b: poly8x8_t) -> poly8x8_t {
2473
2473
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2474
2474
#[ rustc_legacy_const_generics( 2 ) ]
2475
2475
pub unsafe fn vsliq_n_p8 < const N : i32 > ( a : poly8x16_t , b : poly8x16_t ) -> poly8x16_t {
2476
- assert ! ( 0 <= N && N <= 7 , "must have 0 ≤ N ≤ 7, but N = {}" , N ) ;
2476
+ static_assert_imm3 ! ( N ) ;
2477
2477
transmute ( vsliq_n_s8_ ( transmute ( a) , transmute ( b) , N ) )
2478
2478
}
2479
2479
/// Shift Left and Insert (immediate)
@@ -2482,7 +2482,7 @@ pub unsafe fn vsliq_n_p8<const N: i32>(a: poly8x16_t, b: poly8x16_t) -> poly8x16
2482
2482
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2483
2483
#[ rustc_legacy_const_generics( 2 ) ]
2484
2484
pub unsafe fn vsli_n_p16 < const N : i32 > ( a : poly16x4_t , b : poly16x4_t ) -> poly16x4_t {
2485
- assert ! ( 0 <= N && N <= 15 , "must have 0 ≤ N ≤ 15, but N = {}" , N ) ;
2485
+ static_assert_imm4 ! ( N ) ;
2486
2486
transmute ( vsli_n_s16_ ( transmute ( a) , transmute ( b) , N ) )
2487
2487
}
2488
2488
/// Shift Left and Insert (immediate)
@@ -2491,7 +2491,7 @@ pub unsafe fn vsli_n_p16<const N: i32>(a: poly16x4_t, b: poly16x4_t) -> poly16x4
2491
2491
#[ cfg_attr( test, assert_instr( sli, n = 1 ) ) ]
2492
2492
#[ rustc_legacy_const_generics( 2 ) ]
2493
2493
pub unsafe fn vsliq_n_p16 < const N : i32 > ( a : poly16x8_t , b : poly16x8_t ) -> poly16x8_t {
2494
- assert ! ( 0 <= N && N <= 15 , "must have 0 ≤ N ≤ 15, but N = {}" , N ) ;
2494
+ static_assert_imm4 ! ( N ) ;
2495
2495
transmute ( vsliq_n_s16_ ( transmute ( a) , transmute ( b) , N ) )
2496
2496
}
2497
2497
@@ -2501,7 +2501,7 @@ pub unsafe fn vsliq_n_p16<const N: i32>(a: poly16x8_t, b: poly16x8_t) -> poly16x
2501
2501
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2502
2502
#[ rustc_legacy_const_generics( 2 ) ]
2503
2503
pub unsafe fn vsri_n_s8 < const N : i32 > ( a : int8x8_t , b : int8x8_t ) -> int8x8_t {
2504
- assert ! ( 1 <= N && N <= 8 , "must have 1 ≤ N ≤ 8, but N = {}" , N ) ;
2504
+ static_assert ! ( N : i32 where N >= 1 && N <= 8 ) ;
2505
2505
vsri_n_s8_ ( a, b, N )
2506
2506
}
2507
2507
/// Shift Right and Insert (immediate)
@@ -2510,7 +2510,7 @@ pub unsafe fn vsri_n_s8<const N: i32>(a: int8x8_t, b: int8x8_t) -> int8x8_t {
2510
2510
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2511
2511
#[ rustc_legacy_const_generics( 2 ) ]
2512
2512
pub unsafe fn vsriq_n_s8 < const N : i32 > ( a : int8x16_t , b : int8x16_t ) -> int8x16_t {
2513
- assert ! ( 1 <= N && N <= 8 , "must have 1 ≤ N ≤ 8, but N = {}" , N ) ;
2513
+ static_assert ! ( N : i32 where N >= 1 && N <= 8 ) ;
2514
2514
vsriq_n_s8_ ( a, b, N )
2515
2515
}
2516
2516
/// Shift Right and Insert (immediate)
@@ -2519,7 +2519,7 @@ pub unsafe fn vsriq_n_s8<const N: i32>(a: int8x16_t, b: int8x16_t) -> int8x16_t
2519
2519
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2520
2520
#[ rustc_legacy_const_generics( 2 ) ]
2521
2521
pub unsafe fn vsri_n_s16 < const N : i32 > ( a : int16x4_t , b : int16x4_t ) -> int16x4_t {
2522
- assert ! ( 1 <= N && N <= 16 , "must have 1 ≤ N ≤ 16, but N = {}" , N ) ;
2522
+ static_assert ! ( N : i32 where N >= 1 && N <= 16 ) ;
2523
2523
vsri_n_s16_ ( a, b, N )
2524
2524
}
2525
2525
/// Shift Right and Insert (immediate)
@@ -2528,7 +2528,7 @@ pub unsafe fn vsri_n_s16<const N: i32>(a: int16x4_t, b: int16x4_t) -> int16x4_t
2528
2528
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2529
2529
#[ rustc_legacy_const_generics( 2 ) ]
2530
2530
pub unsafe fn vsriq_n_s16 < const N : i32 > ( a : int16x8_t , b : int16x8_t ) -> int16x8_t {
2531
- assert ! ( 1 <= N && N <= 16 , "must have 1 ≤ N ≤ 16, but N = {}" , N ) ;
2531
+ static_assert ! ( N : i32 where N >= 1 && N <= 16 ) ;
2532
2532
vsriq_n_s16_ ( a, b, N )
2533
2533
}
2534
2534
/// Shift Right and Insert (immediate)
@@ -2537,7 +2537,7 @@ pub unsafe fn vsriq_n_s16<const N: i32>(a: int16x8_t, b: int16x8_t) -> int16x8_t
2537
2537
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2538
2538
#[ rustc_legacy_const_generics( 2 ) ]
2539
2539
pub unsafe fn vsri_n_s32 < const N : i32 > ( a : int32x2_t , b : int32x2_t ) -> int32x2_t {
2540
- assert ! ( 1 <= N && N <= 32 , "must have 1 ≤ N ≤ 32, but N = {}" , N ) ;
2540
+ static_assert ! ( N : i32 where N >= 1 && N <= 32 ) ;
2541
2541
vsri_n_s32_ ( a, b, N )
2542
2542
}
2543
2543
/// Shift Right and Insert (immediate)
@@ -2546,7 +2546,7 @@ pub unsafe fn vsri_n_s32<const N: i32>(a: int32x2_t, b: int32x2_t) -> int32x2_t
2546
2546
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2547
2547
#[ rustc_legacy_const_generics( 2 ) ]
2548
2548
pub unsafe fn vsriq_n_s32 < const N : i32 > ( a : int32x4_t , b : int32x4_t ) -> int32x4_t {
2549
- assert ! ( 1 <= N && N <= 32 , "must have 1 ≤ N ≤ 32, but N = {}" , N ) ;
2549
+ static_assert ! ( N : i32 where N >= 1 && N <= 32 ) ;
2550
2550
vsriq_n_s32_ ( a, b, N )
2551
2551
}
2552
2552
/// Shift Right and Insert (immediate)
@@ -2555,7 +2555,7 @@ pub unsafe fn vsriq_n_s32<const N: i32>(a: int32x4_t, b: int32x4_t) -> int32x4_t
2555
2555
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2556
2556
#[ rustc_legacy_const_generics( 2 ) ]
2557
2557
pub unsafe fn vsri_n_s64 < const N : i32 > ( a : int64x1_t , b : int64x1_t ) -> int64x1_t {
2558
- assert ! ( 1 <= N && N <= 64 , "must have 1 ≤ N ≤ 64, but N = {}" , N ) ;
2558
+ static_assert ! ( N : i32 where N >= 1 && N <= 64 ) ;
2559
2559
vsri_n_s64_ ( a, b, N )
2560
2560
}
2561
2561
/// Shift Right and Insert (immediate)
@@ -2564,7 +2564,7 @@ pub unsafe fn vsri_n_s64<const N: i32>(a: int64x1_t, b: int64x1_t) -> int64x1_t
2564
2564
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2565
2565
#[ rustc_legacy_const_generics( 2 ) ]
2566
2566
pub unsafe fn vsriq_n_s64 < const N : i32 > ( a : int64x2_t , b : int64x2_t ) -> int64x2_t {
2567
- assert ! ( 1 <= N && N <= 64 , "must have 1 ≤ N ≤ 64, but N = {}" , N ) ;
2567
+ static_assert ! ( N : i32 where N >= 1 && N <= 64 ) ;
2568
2568
vsriq_n_s64_ ( a, b, N )
2569
2569
}
2570
2570
/// Shift Right and Insert (immediate)
@@ -2573,7 +2573,7 @@ pub unsafe fn vsriq_n_s64<const N: i32>(a: int64x2_t, b: int64x2_t) -> int64x2_t
2573
2573
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2574
2574
#[ rustc_legacy_const_generics( 2 ) ]
2575
2575
pub unsafe fn vsri_n_u8 < const N : i32 > ( a : uint8x8_t , b : uint8x8_t ) -> uint8x8_t {
2576
- assert ! ( 1 <= N && N <= 8 , "must have 1 ≤ N ≤ 8, but N = {}" , N ) ;
2576
+ static_assert ! ( N : i32 where N >= 1 && N <= 8 ) ;
2577
2577
transmute ( vsri_n_s8_ ( transmute ( a) , transmute ( b) , N ) )
2578
2578
}
2579
2579
/// Shift Right and Insert (immediate)
@@ -2582,7 +2582,7 @@ pub unsafe fn vsri_n_u8<const N: i32>(a: uint8x8_t, b: uint8x8_t) -> uint8x8_t {
2582
2582
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2583
2583
#[ rustc_legacy_const_generics( 2 ) ]
2584
2584
pub unsafe fn vsriq_n_u8 < const N : i32 > ( a : uint8x16_t , b : uint8x16_t ) -> uint8x16_t {
2585
- assert ! ( 1 <= N && N <= 8 , "must have 1 ≤ N ≤ 8, but N = {}" , N ) ;
2585
+ static_assert ! ( N : i32 where N >= 1 && N <= 8 ) ;
2586
2586
transmute ( vsriq_n_s8_ ( transmute ( a) , transmute ( b) , N ) )
2587
2587
}
2588
2588
/// Shift Right and Insert (immediate)
@@ -2591,7 +2591,7 @@ pub unsafe fn vsriq_n_u8<const N: i32>(a: uint8x16_t, b: uint8x16_t) -> uint8x16
2591
2591
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2592
2592
#[ rustc_legacy_const_generics( 2 ) ]
2593
2593
pub unsafe fn vsri_n_u16 < const N : i32 > ( a : uint16x4_t , b : uint16x4_t ) -> uint16x4_t {
2594
- assert ! ( 1 <= N && N <= 16 , "must have 1 ≤ N ≤ 16, but N = {}" , N ) ;
2594
+ static_assert ! ( N : i32 where N >= 1 && N <= 16 ) ;
2595
2595
transmute ( vsri_n_s16_ ( transmute ( a) , transmute ( b) , N ) )
2596
2596
}
2597
2597
/// Shift Right and Insert (immediate)
@@ -2600,7 +2600,7 @@ pub unsafe fn vsri_n_u16<const N: i32>(a: uint16x4_t, b: uint16x4_t) -> uint16x4
2600
2600
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2601
2601
#[ rustc_legacy_const_generics( 2 ) ]
2602
2602
pub unsafe fn vsriq_n_u16 < const N : i32 > ( a : uint16x8_t , b : uint16x8_t ) -> uint16x8_t {
2603
- assert ! ( 1 <= N && N <= 16 , "must have 1 ≤ N ≤ 16, but N = {}" , N ) ;
2603
+ static_assert ! ( N : i32 where N >= 1 && N <= 16 ) ;
2604
2604
transmute ( vsriq_n_s16_ ( transmute ( a) , transmute ( b) , N ) )
2605
2605
}
2606
2606
/// Shift Right and Insert (immediate)
@@ -2609,7 +2609,7 @@ pub unsafe fn vsriq_n_u16<const N: i32>(a: uint16x8_t, b: uint16x8_t) -> uint16x
2609
2609
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2610
2610
#[ rustc_legacy_const_generics( 2 ) ]
2611
2611
pub unsafe fn vsri_n_u32 < const N : i32 > ( a : uint32x2_t , b : uint32x2_t ) -> uint32x2_t {
2612
- assert ! ( 1 <= N && N <= 32 , "must have 1 ≤ N ≤ 32, but N = {}" , N ) ;
2612
+ static_assert ! ( N : i32 where N >= 1 && N <= 32 ) ;
2613
2613
transmute ( vsri_n_s32_ ( transmute ( a) , transmute ( b) , N ) )
2614
2614
}
2615
2615
/// Shift Right and Insert (immediate)
@@ -2618,7 +2618,7 @@ pub unsafe fn vsri_n_u32<const N: i32>(a: uint32x2_t, b: uint32x2_t) -> uint32x2
2618
2618
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2619
2619
#[ rustc_legacy_const_generics( 2 ) ]
2620
2620
pub unsafe fn vsriq_n_u32 < const N : i32 > ( a : uint32x4_t , b : uint32x4_t ) -> uint32x4_t {
2621
- assert ! ( 1 <= N && N <= 32 , "must have 1 ≤ N ≤ 32, but N = {}" , N ) ;
2621
+ static_assert ! ( N : i32 where N >= 1 && N <= 32 ) ;
2622
2622
transmute ( vsriq_n_s32_ ( transmute ( a) , transmute ( b) , N ) )
2623
2623
}
2624
2624
/// Shift Right and Insert (immediate)
@@ -2627,7 +2627,7 @@ pub unsafe fn vsriq_n_u32<const N: i32>(a: uint32x4_t, b: uint32x4_t) -> uint32x
2627
2627
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2628
2628
#[ rustc_legacy_const_generics( 2 ) ]
2629
2629
pub unsafe fn vsri_n_u64 < const N : i32 > ( a : uint64x1_t , b : uint64x1_t ) -> uint64x1_t {
2630
- assert ! ( 1 <= N && N <= 64 , "must have 1 ≤ N ≤ 64, but N = {}" , N ) ;
2630
+ static_assert ! ( N : i32 where N >= 1 && N <= 64 ) ;
2631
2631
transmute ( vsri_n_s64_ ( transmute ( a) , transmute ( b) , N ) )
2632
2632
}
2633
2633
/// Shift Right and Insert (immediate)
@@ -2636,7 +2636,7 @@ pub unsafe fn vsri_n_u64<const N: i32>(a: uint64x1_t, b: uint64x1_t) -> uint64x1
2636
2636
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2637
2637
#[ rustc_legacy_const_generics( 2 ) ]
2638
2638
pub unsafe fn vsriq_n_u64 < const N : i32 > ( a : uint64x2_t , b : uint64x2_t ) -> uint64x2_t {
2639
- assert ! ( 1 <= N && N <= 64 , "must have 1 ≤ N ≤ 64, but N = {}" , N ) ;
2639
+ static_assert ! ( N : i32 where N >= 1 && N <= 64 ) ;
2640
2640
transmute ( vsriq_n_s64_ ( transmute ( a) , transmute ( b) , N ) )
2641
2641
}
2642
2642
/// Shift Right and Insert (immediate)
@@ -2645,7 +2645,7 @@ pub unsafe fn vsriq_n_u64<const N: i32>(a: uint64x2_t, b: uint64x2_t) -> uint64x
2645
2645
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2646
2646
#[ rustc_legacy_const_generics( 2 ) ]
2647
2647
pub unsafe fn vsri_n_p8 < const N : i32 > ( a : poly8x8_t , b : poly8x8_t ) -> poly8x8_t {
2648
- assert ! ( 1 <= N && N <= 8 , "must have 1 ≤ N ≤ 8, but N = {}" , N ) ;
2648
+ static_assert ! ( N : i32 where N >= 1 && N <= 8 ) ;
2649
2649
transmute ( vsri_n_s8_ ( transmute ( a) , transmute ( b) , N ) )
2650
2650
}
2651
2651
/// Shift Right and Insert (immediate)
@@ -2654,7 +2654,7 @@ pub unsafe fn vsri_n_p8<const N: i32>(a: poly8x8_t, b: poly8x8_t) -> poly8x8_t {
2654
2654
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2655
2655
#[ rustc_legacy_const_generics( 2 ) ]
2656
2656
pub unsafe fn vsriq_n_p8 < const N : i32 > ( a : poly8x16_t , b : poly8x16_t ) -> poly8x16_t {
2657
- assert ! ( 1 <= N && N <= 8 , "must have 1 ≤ N ≤ 8, but N = {}" , N ) ;
2657
+ static_assert ! ( N : i32 where N >= 1 && N <= 8 ) ;
2658
2658
transmute ( vsriq_n_s8_ ( transmute ( a) , transmute ( b) , N ) )
2659
2659
}
2660
2660
/// Shift Right and Insert (immediate)
@@ -2663,7 +2663,7 @@ pub unsafe fn vsriq_n_p8<const N: i32>(a: poly8x16_t, b: poly8x16_t) -> poly8x16
2663
2663
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2664
2664
#[ rustc_legacy_const_generics( 2 ) ]
2665
2665
pub unsafe fn vsri_n_p16 < const N : i32 > ( a : poly16x4_t , b : poly16x4_t ) -> poly16x4_t {
2666
- assert ! ( 1 <= N && N <= 16 , "must have 1 ≤ N ≤ 16, but N = {}" , N ) ;
2666
+ static_assert ! ( N : i32 where N >= 1 && N <= 16 ) ;
2667
2667
transmute ( vsri_n_s16_ ( transmute ( a) , transmute ( b) , N ) )
2668
2668
}
2669
2669
/// Shift Right and Insert (immediate)
@@ -2672,7 +2672,7 @@ pub unsafe fn vsri_n_p16<const N: i32>(a: poly16x4_t, b: poly16x4_t) -> poly16x4
2672
2672
#[ cfg_attr( test, assert_instr( sri, n = 1 ) ) ]
2673
2673
#[ rustc_legacy_const_generics( 2 ) ]
2674
2674
pub unsafe fn vsriq_n_p16 < const N : i32 > ( a : poly16x8_t , b : poly16x8_t ) -> poly16x8_t {
2675
- assert ! ( 1 <= N && N <= 16 , "must have 1 ≤ N ≤ 16, but N = {}" , N ) ;
2675
+ static_assert ! ( N : i32 where N >= 1 && N <= 16 ) ;
2676
2676
transmute ( vsriq_n_s16_ ( transmute ( a) , transmute ( b) , N ) )
2677
2677
}
2678
2678
0 commit comments