@@ -787,96 +787,96 @@ pub const _CMP_TRUE_US: i32 = 0x1f;
787
787
788
788
/// Compares packed double-precision (64-bit) floating-point
789
789
/// elements in `a` and `b` based on the comparison operand
790
- /// specified by `imm8 `.
790
+ /// specified by `IMM5 `.
791
791
///
792
792
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cmp_pd)
793
793
#[ inline]
794
794
#[ target_feature( enable = "avx,sse2" ) ]
795
- #[ cfg_attr( test, assert_instr( vcmpeqpd, IMM8 = 0 ) ) ] // TODO Validate vcmppd
795
+ #[ cfg_attr( test, assert_instr( vcmpeqpd, IMM5 = 0 ) ) ] // TODO Validate vcmppd
796
796
#[ rustc_legacy_const_generics( 2 ) ]
797
797
#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
798
- pub unsafe fn _mm_cmp_pd < const IMM8 : i32 > ( a : __m128d , b : __m128d ) -> __m128d {
799
- static_assert_imm5 ! ( IMM8 ) ;
800
- vcmppd ( a, b, IMM8 as i8 )
798
+ pub unsafe fn _mm_cmp_pd < const IMM5 : i32 > ( a : __m128d , b : __m128d ) -> __m128d {
799
+ static_assert_imm5 ! ( IMM5 ) ;
800
+ vcmppd ( a, b, IMM5 as i8 )
801
801
}
802
802
803
803
/// Compares packed double-precision (64-bit) floating-point
804
804
/// elements in `a` and `b` based on the comparison operand
805
- /// specified by `imm8 `.
805
+ /// specified by `IMM5 `.
806
806
///
807
807
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_cmp_pd)
808
808
#[ inline]
809
809
#[ target_feature( enable = "avx" ) ]
810
- #[ cfg_attr( test, assert_instr( vcmpeqpd, IMM8 = 0 ) ) ] // TODO Validate vcmppd
810
+ #[ cfg_attr( test, assert_instr( vcmpeqpd, IMM5 = 0 ) ) ] // TODO Validate vcmppd
811
811
#[ rustc_legacy_const_generics( 2 ) ]
812
812
#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
813
- pub unsafe fn _mm256_cmp_pd < const IMM8 : i32 > ( a : __m256d , b : __m256d ) -> __m256d {
814
- static_assert_imm5 ! ( IMM8 ) ;
815
- vcmppd256 ( a, b, IMM8 as u8 )
813
+ pub unsafe fn _mm256_cmp_pd < const IMM5 : i32 > ( a : __m256d , b : __m256d ) -> __m256d {
814
+ static_assert_imm5 ! ( IMM5 ) ;
815
+ vcmppd256 ( a, b, IMM5 as u8 )
816
816
}
817
817
818
818
/// Compares packed single-precision (32-bit) floating-point
819
819
/// elements in `a` and `b` based on the comparison operand
820
- /// specified by `imm8 `.
820
+ /// specified by `IMM5 `.
821
821
///
822
822
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cmp_ps)
823
823
#[ inline]
824
824
#[ target_feature( enable = "avx,sse" ) ]
825
- #[ cfg_attr( test, assert_instr( vcmpeqps, IMM8 = 0 ) ) ] // TODO Validate vcmpps
825
+ #[ cfg_attr( test, assert_instr( vcmpeqps, IMM5 = 0 ) ) ] // TODO Validate vcmpps
826
826
#[ rustc_legacy_const_generics( 2 ) ]
827
827
#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
828
- pub unsafe fn _mm_cmp_ps < const IMM8 : i32 > ( a : __m128 , b : __m128 ) -> __m128 {
829
- static_assert_imm5 ! ( IMM8 ) ;
830
- vcmpps ( a, b, IMM8 as i8 )
828
+ pub unsafe fn _mm_cmp_ps < const IMM5 : i32 > ( a : __m128 , b : __m128 ) -> __m128 {
829
+ static_assert_imm5 ! ( IMM5 ) ;
830
+ vcmpps ( a, b, IMM5 as i8 )
831
831
}
832
832
833
833
/// Compares packed single-precision (32-bit) floating-point
834
834
/// elements in `a` and `b` based on the comparison operand
835
- /// specified by `imm8 `.
835
+ /// specified by `IMM5 `.
836
836
///
837
837
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_cmp_ps)
838
838
#[ inline]
839
839
#[ target_feature( enable = "avx" ) ]
840
- #[ cfg_attr( test, assert_instr( vcmpeqps, IMM8 = 0 ) ) ] // TODO Validate vcmpps
840
+ #[ cfg_attr( test, assert_instr( vcmpeqps, IMM5 = 0 ) ) ] // TODO Validate vcmpps
841
841
#[ rustc_legacy_const_generics( 2 ) ]
842
842
#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
843
- pub unsafe fn _mm256_cmp_ps < const IMM8 : i32 > ( a : __m256 , b : __m256 ) -> __m256 {
844
- static_assert_imm5 ! ( IMM8 ) ;
845
- vcmpps256 ( a, b, IMM8 as u8 )
843
+ pub unsafe fn _mm256_cmp_ps < const IMM5 : i32 > ( a : __m256 , b : __m256 ) -> __m256 {
844
+ static_assert_imm5 ! ( IMM5 ) ;
845
+ vcmpps256 ( a, b, IMM5 as u8 )
846
846
}
847
847
848
848
/// Compares the lower double-precision (64-bit) floating-point element in
849
- /// `a` and `b` based on the comparison operand specified by `imm8 `,
849
+ /// `a` and `b` based on the comparison operand specified by `IMM5 `,
850
850
/// store the result in the lower element of returned vector,
851
851
/// and copies the upper element from `a` to the upper element of returned
852
852
/// vector.
853
853
///
854
854
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cmp_sd)
855
855
#[ inline]
856
856
#[ target_feature( enable = "avx,sse2" ) ]
857
- #[ cfg_attr( test, assert_instr( vcmpeqsd, IMM8 = 0 ) ) ] // TODO Validate vcmpsd
857
+ #[ cfg_attr( test, assert_instr( vcmpeqsd, IMM5 = 0 ) ) ] // TODO Validate vcmpsd
858
858
#[ rustc_legacy_const_generics( 2 ) ]
859
859
#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
860
- pub unsafe fn _mm_cmp_sd < const IMM8 : i32 > ( a : __m128d , b : __m128d ) -> __m128d {
861
- static_assert_imm5 ! ( IMM8 ) ;
862
- vcmpsd ( a, b, IMM8 as i8 )
860
+ pub unsafe fn _mm_cmp_sd < const IMM5 : i32 > ( a : __m128d , b : __m128d ) -> __m128d {
861
+ static_assert_imm5 ! ( IMM5 ) ;
862
+ vcmpsd ( a, b, IMM5 as i8 )
863
863
}
864
864
865
865
/// Compares the lower single-precision (32-bit) floating-point element in
866
- /// `a` and `b` based on the comparison operand specified by `imm8 `,
866
+ /// `a` and `b` based on the comparison operand specified by `IMM5 `,
867
867
/// store the result in the lower element of returned vector,
868
868
/// and copies the upper 3 packed elements from `a` to the upper elements of
869
869
/// returned vector.
870
870
///
871
871
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cmp_ss)
872
872
#[ inline]
873
873
#[ target_feature( enable = "avx,sse" ) ]
874
- #[ cfg_attr( test, assert_instr( vcmpeqss, IMM8 = 0 ) ) ] // TODO Validate vcmpss
874
+ #[ cfg_attr( test, assert_instr( vcmpeqss, IMM5 = 0 ) ) ] // TODO Validate vcmpss
875
875
#[ rustc_legacy_const_generics( 2 ) ]
876
876
#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
877
- pub unsafe fn _mm_cmp_ss < const IMM8 : i32 > ( a : __m128 , b : __m128 ) -> __m128 {
878
- static_assert_imm5 ! ( IMM8 ) ;
879
- vcmpss ( a, b, IMM8 as i8 )
877
+ pub unsafe fn _mm_cmp_ss < const IMM5 : i32 > ( a : __m128 , b : __m128 ) -> __m128 {
878
+ static_assert_imm5 ! ( IMM5 ) ;
879
+ vcmpss ( a, b, IMM5 as i8 )
880
880
}
881
881
882
882
/// Converts packed 32-bit integers in `a` to packed double-precision (64-bit)
0 commit comments