@@ -16,7 +16,7 @@ use std::simd::prelude::*;
1616
1717#[ rustc_intrinsic]
1818#[ rustc_nounwind]
19- pub unsafe fn simd_shuffle_generic < T , U , const IDX : & ' static [ u32 ] > ( _x : T , _y : T ) -> U ;
19+ pub unsafe fn simd_shuffle_const_generic < T , U , const IDX : & ' static [ u32 ] > ( _x : T , _y : T ) -> U ;
2020
2121fn simd_ops_f32 ( ) {
2222 let a = f32x4:: splat ( 10.0 ) ;
@@ -619,13 +619,13 @@ fn simd_intrinsics() {
619619 simd_select( i8x4:: from_array( [ 0 , -1 , -1 , 0 ] ) , b, a) ,
620620 i32x4:: from_array( [ 10 , 2 , 10 , 10 ] )
621621 ) ;
622- assert_eq ! ( simd_shuffle_generic :: <_, i32x4, { & [ 3 , 1 , 0 , 2 ] } >( a, b) , a, ) ;
622+ assert_eq ! ( simd_shuffle_const_generic :: <_, i32x4, { & [ 3 , 1 , 0 , 2 ] } >( a, b) , a, ) ;
623623 assert_eq ! (
624624 simd_shuffle:: <_, _, i32x4>( a, b, const { u32x4:: from_array( [ 3u32 , 1 , 0 , 2 ] ) } ) ,
625625 a,
626626 ) ;
627627 assert_eq ! (
628- simd_shuffle_generic :: <_, i32x4, { & [ 7 , 5 , 4 , 6 ] } >( a, b) ,
628+ simd_shuffle_const_generic :: <_, i32x4, { & [ 7 , 5 , 4 , 6 ] } >( a, b) ,
629629 i32x4:: from_array( [ 4 , 2 , 1 , 10 ] ) ,
630630 ) ;
631631 assert_eq ! (
0 commit comments