@@ -539,7 +539,10 @@ mod tests {
539
539
let a = f64x2:: new ( 1. , 2. ) ;
540
540
let b = f64x2:: new ( 8. , 7. ) ;
541
541
let e = f64x2:: new ( 9. , 9. ) ;
542
- let r: f64x2 = :: mem:: transmute ( vaddq_f64 ( :: mem:: transmute ( a) , :: mem:: transmute ( b) ) ) ;
542
+ let r: f64x2 = :: mem:: transmute ( vaddq_f64 (
543
+ :: mem:: transmute ( a) ,
544
+ :: mem:: transmute ( b) ,
545
+ ) ) ;
543
546
assert_eq ! ( r, e) ;
544
547
}
545
548
@@ -589,7 +592,8 @@ mod tests {
589
592
590
593
#[ simd_test( enable = "neon" ) ]
591
594
unsafe fn test_vmaxvq_s16 ( ) {
592
- let r = vmaxvq_s16 ( :: mem:: transmute ( i16x8:: new ( 1 , 2 , 7 , 4 , -16 , 6 , 7 , 5 ) ) ) ;
595
+ let r =
596
+ vmaxvq_s16 ( :: mem:: transmute ( i16x8:: new ( 1 , 2 , 7 , 4 , -16 , 6 , 7 , 5 ) ) ) ;
593
597
assert_eq ! ( r, 7_i16 ) ;
594
598
}
595
599
@@ -631,7 +635,8 @@ mod tests {
631
635
632
636
#[ simd_test( enable = "neon" ) ]
633
637
unsafe fn test_vmaxvq_u16 ( ) {
634
- let r = vmaxvq_u16 ( :: mem:: transmute ( u16x8:: new ( 1 , 2 , 7 , 4 , 16 , 6 , 7 , 5 ) ) ) ;
638
+ let r =
639
+ vmaxvq_u16 ( :: mem:: transmute ( u16x8:: new ( 1 , 2 , 7 , 4 , 16 , 6 , 7 , 5 ) ) ) ;
635
640
assert_eq ! ( r, 16_u16 ) ;
636
641
}
637
642
@@ -691,7 +696,8 @@ mod tests {
691
696
692
697
#[ simd_test( enable = "neon" ) ]
693
698
unsafe fn test_vminvq_s16 ( ) {
694
- let r = vminvq_s16 ( :: mem:: transmute ( i16x8:: new ( 1 , 2 , 7 , 4 , -16 , 6 , 7 , 5 ) ) ) ;
699
+ let r =
700
+ vminvq_s16 ( :: mem:: transmute ( i16x8:: new ( 1 , 2 , 7 , 4 , -16 , 6 , 7 , 5 ) ) ) ;
695
701
assert_eq ! ( r, -16_i16 ) ;
696
702
}
697
703
@@ -733,7 +739,8 @@ mod tests {
733
739
734
740
#[ simd_test( enable = "neon" ) ]
735
741
unsafe fn test_vminvq_u16 ( ) {
736
- let r = vminvq_u16 ( :: mem:: transmute ( u16x8:: new ( 1 , 2 , 7 , 4 , 16 , 6 , 7 , 5 ) ) ) ;
742
+ let r =
743
+ vminvq_u16 ( :: mem:: transmute ( u16x8:: new ( 1 , 2 , 7 , 4 , 16 , 6 , 7 , 5 ) ) ) ;
737
744
assert_eq ! ( r, 1_u16 ) ;
738
745
}
739
746
@@ -775,7 +782,10 @@ mod tests {
775
782
let b = i8x16:: new ( 0 , 3 , 2 , 5 , 4 , 7 , 6 , 9 , 0 , 3 , 2 , 5 , 4 , 7 , 6 , 9 ) ;
776
783
#[ cfg_attr( rustfmt, skip) ]
777
784
let e = i8x16:: new ( -2 , -4 , 5 , 7 , 1 , 3 , 5 , 7 , 0 , 2 , 4 , 6 , 0 , 2 , 4 , 6 ) ;
778
- let r: i8x16 = :: mem:: transmute ( vpminq_s8 ( :: mem:: transmute ( a) , :: mem:: transmute ( b) ) ) ;
785
+ let r: i8x16 = :: mem:: transmute ( vpminq_s8 (
786
+ :: mem:: transmute ( a) ,
787
+ :: mem:: transmute ( b) ,
788
+ ) ) ;
779
789
assert_eq ! ( r, e) ;
780
790
}
781
791
@@ -784,7 +794,10 @@ mod tests {
784
794
let a = i16x8:: new ( 1 , -2 , 3 , 4 , 5 , 6 , 7 , 8 ) ;
785
795
let b = i16x8:: new ( 0 , 3 , 2 , 5 , 4 , 7 , 6 , 9 ) ;
786
796
let e = i16x8:: new ( -2 , 3 , 5 , 7 , 0 , 2 , 4 , 6 ) ;
787
- let r: i16x8 = :: mem:: transmute ( vpminq_s16 ( :: mem:: transmute ( a) , :: mem:: transmute ( b) ) ) ;
797
+ let r: i16x8 = :: mem:: transmute ( vpminq_s16 (
798
+ :: mem:: transmute ( a) ,
799
+ :: mem:: transmute ( b) ,
800
+ ) ) ;
788
801
assert_eq ! ( r, e) ;
789
802
}
790
803
@@ -793,7 +806,10 @@ mod tests {
793
806
let a = i32x4:: new ( 1 , -2 , 3 , 4 ) ;
794
807
let b = i32x4:: new ( 0 , 3 , 2 , 5 ) ;
795
808
let e = i32x4:: new ( -2 , 3 , 0 , 2 ) ;
796
- let r: i32x4 = :: mem:: transmute ( vpminq_s32 ( :: mem:: transmute ( a) , :: mem:: transmute ( b) ) ) ;
809
+ let r: i32x4 = :: mem:: transmute ( vpminq_s32 (
810
+ :: mem:: transmute ( a) ,
811
+ :: mem:: transmute ( b) ,
812
+ ) ) ;
797
813
assert_eq ! ( r, e) ;
798
814
}
799
815
@@ -805,7 +821,10 @@ mod tests {
805
821
let b = u8x16:: new ( 0 , 3 , 2 , 5 , 4 , 7 , 6 , 9 , 0 , 3 , 2 , 5 , 4 , 7 , 6 , 9 ) ;
806
822
#[ cfg_attr( rustfmt, skip) ]
807
823
let e = u8x16:: new ( 1 , 3 , 5 , 7 , 1 , 3 , 5 , 7 , 0 , 2 , 4 , 6 , 0 , 2 , 4 , 6 ) ;
808
- let r: u8x16 = :: mem:: transmute ( vpminq_u8 ( :: mem:: transmute ( a) , :: mem:: transmute ( b) ) ) ;
824
+ let r: u8x16 = :: mem:: transmute ( vpminq_u8 (
825
+ :: mem:: transmute ( a) ,
826
+ :: mem:: transmute ( b) ,
827
+ ) ) ;
809
828
assert_eq ! ( r, e) ;
810
829
}
811
830
@@ -814,7 +833,10 @@ mod tests {
814
833
let a = u16x8:: new ( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ) ;
815
834
let b = u16x8:: new ( 0 , 3 , 2 , 5 , 4 , 7 , 6 , 9 ) ;
816
835
let e = u16x8:: new ( 1 , 3 , 5 , 7 , 0 , 2 , 4 , 6 ) ;
817
- let r: u16x8 = :: mem:: transmute ( vpminq_u16 ( :: mem:: transmute ( a) , :: mem:: transmute ( b) ) ) ;
836
+ let r: u16x8 = :: mem:: transmute ( vpminq_u16 (
837
+ :: mem:: transmute ( a) ,
838
+ :: mem:: transmute ( b) ,
839
+ ) ) ;
818
840
assert_eq ! ( r, e) ;
819
841
}
820
842
@@ -823,7 +845,10 @@ mod tests {
823
845
let a = u32x4:: new ( 1 , 2 , 3 , 4 ) ;
824
846
let b = u32x4:: new ( 0 , 3 , 2 , 5 ) ;
825
847
let e = u32x4:: new ( 1 , 3 , 0 , 2 ) ;
826
- let r: u32x4 = :: mem:: transmute ( vpminq_u32 ( :: mem:: transmute ( a) , :: mem:: transmute ( b) ) ) ;
848
+ let r: u32x4 = :: mem:: transmute ( vpminq_u32 (
849
+ :: mem:: transmute ( a) ,
850
+ :: mem:: transmute ( b) ,
851
+ ) ) ;
827
852
assert_eq ! ( r, e) ;
828
853
}
829
854
@@ -832,7 +857,10 @@ mod tests {
832
857
let a = f32x4:: new ( 1. , -2. , 3. , 4. ) ;
833
858
let b = f32x4:: new ( 0. , 3. , 2. , 5. ) ;
834
859
let e = f32x4:: new ( -2. , 3. , 0. , 2. ) ;
835
- let r: f32x4 = :: mem:: transmute ( vpminq_f32 ( :: mem:: transmute ( a) , :: mem:: transmute ( b) ) ) ;
860
+ let r: f32x4 = :: mem:: transmute ( vpminq_f32 (
861
+ :: mem:: transmute ( a) ,
862
+ :: mem:: transmute ( b) ,
863
+ ) ) ;
836
864
assert_eq ! ( r, e) ;
837
865
}
838
866
@@ -841,7 +869,10 @@ mod tests {
841
869
let a = f64x2:: new ( 1. , -2. ) ;
842
870
let b = f64x2:: new ( 0. , 3. ) ;
843
871
let e = f64x2:: new ( -2. , 0. ) ;
844
- let r: f64x2 = :: mem:: transmute ( vpminq_f64 ( :: mem:: transmute ( a) , :: mem:: transmute ( b) ) ) ;
872
+ let r: f64x2 = :: mem:: transmute ( vpminq_f64 (
873
+ :: mem:: transmute ( a) ,
874
+ :: mem:: transmute ( b) ,
875
+ ) ) ;
845
876
assert_eq ! ( r, e) ;
846
877
}
847
878
@@ -853,7 +884,10 @@ mod tests {
853
884
let b = i8x16:: new ( 0 , 3 , 2 , 5 , 4 , 7 , 6 , 9 , 0 , 3 , 2 , 5 , 4 , 7 , 6 , 9 ) ;
854
885
#[ cfg_attr( rustfmt, skip) ]
855
886
let e = i8x16:: new ( 1 , 3 , 6 , 8 , 2 , 4 , 6 , 8 , 3 , 5 , 7 , 9 , 3 , 5 , 7 , 9 ) ;
856
- let r: i8x16 = :: mem:: transmute ( vpmaxq_s8 ( :: mem:: transmute ( a) , :: mem:: transmute ( b) ) ) ;
887
+ let r: i8x16 = :: mem:: transmute ( vpmaxq_s8 (
888
+ :: mem:: transmute ( a) ,
889
+ :: mem:: transmute ( b) ,
890
+ ) ) ;
857
891
assert_eq ! ( r, e) ;
858
892
}
859
893
@@ -862,7 +896,10 @@ mod tests {
862
896
let a = i16x8:: new ( 1 , -2 , 3 , 4 , 5 , 6 , 7 , 8 ) ;
863
897
let b = i16x8:: new ( 0 , 3 , 2 , 5 , 4 , 7 , 6 , 9 ) ;
864
898
let e = i16x8:: new ( 1 , 4 , 6 , 8 , 3 , 5 , 7 , 9 ) ;
865
- let r: i16x8 = :: mem:: transmute ( vpmaxq_s16 ( :: mem:: transmute ( a) , :: mem:: transmute ( b) ) ) ;
899
+ let r: i16x8 = :: mem:: transmute ( vpmaxq_s16 (
900
+ :: mem:: transmute ( a) ,
901
+ :: mem:: transmute ( b) ,
902
+ ) ) ;
866
903
assert_eq ! ( r, e) ;
867
904
}
868
905
@@ -871,7 +908,10 @@ mod tests {
871
908
let a = i32x4:: new ( 1 , -2 , 3 , 4 ) ;
872
909
let b = i32x4:: new ( 0 , 3 , 2 , 5 ) ;
873
910
let e = i32x4:: new ( 1 , 4 , 3 , 5 ) ;
874
- let r: i32x4 = :: mem:: transmute ( vpmaxq_s32 ( :: mem:: transmute ( a) , :: mem:: transmute ( b) ) ) ;
911
+ let r: i32x4 = :: mem:: transmute ( vpmaxq_s32 (
912
+ :: mem:: transmute ( a) ,
913
+ :: mem:: transmute ( b) ,
914
+ ) ) ;
875
915
assert_eq ! ( r, e) ;
876
916
}
877
917
@@ -883,7 +923,10 @@ mod tests {
883
923
let b = u8x16:: new ( 0 , 3 , 2 , 5 , 4 , 7 , 6 , 9 , 0 , 3 , 2 , 5 , 4 , 7 , 6 , 9 ) ;
884
924
#[ cfg_attr( rustfmt, skip) ]
885
925
let e = u8x16:: new ( 2 , 4 , 6 , 8 , 2 , 4 , 6 , 8 , 3 , 5 , 7 , 9 , 3 , 5 , 7 , 9 ) ;
886
- let r: u8x16 = :: mem:: transmute ( vpmaxq_u8 ( :: mem:: transmute ( a) , :: mem:: transmute ( b) ) ) ;
926
+ let r: u8x16 = :: mem:: transmute ( vpmaxq_u8 (
927
+ :: mem:: transmute ( a) ,
928
+ :: mem:: transmute ( b) ,
929
+ ) ) ;
887
930
assert_eq ! ( r, e) ;
888
931
}
889
932
@@ -892,7 +935,10 @@ mod tests {
892
935
let a = u16x8:: new ( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ) ;
893
936
let b = u16x8:: new ( 0 , 3 , 2 , 5 , 4 , 7 , 6 , 9 ) ;
894
937
let e = u16x8:: new ( 2 , 4 , 6 , 8 , 3 , 5 , 7 , 9 ) ;
895
- let r: u16x8 = :: mem:: transmute ( vpmaxq_u16 ( :: mem:: transmute ( a) , :: mem:: transmute ( b) ) ) ;
938
+ let r: u16x8 = :: mem:: transmute ( vpmaxq_u16 (
939
+ :: mem:: transmute ( a) ,
940
+ :: mem:: transmute ( b) ,
941
+ ) ) ;
896
942
assert_eq ! ( r, e) ;
897
943
}
898
944
@@ -901,7 +947,10 @@ mod tests {
901
947
let a = u32x4:: new ( 1 , 2 , 3 , 4 ) ;
902
948
let b = u32x4:: new ( 0 , 3 , 2 , 5 ) ;
903
949
let e = u32x4:: new ( 2 , 4 , 3 , 5 ) ;
904
- let r: u32x4 = :: mem:: transmute ( vpmaxq_u32 ( :: mem:: transmute ( a) , :: mem:: transmute ( b) ) ) ;
950
+ let r: u32x4 = :: mem:: transmute ( vpmaxq_u32 (
951
+ :: mem:: transmute ( a) ,
952
+ :: mem:: transmute ( b) ,
953
+ ) ) ;
905
954
assert_eq ! ( r, e) ;
906
955
}
907
956
@@ -910,7 +959,10 @@ mod tests {
910
959
let a = f32x4:: new ( 1. , -2. , 3. , 4. ) ;
911
960
let b = f32x4:: new ( 0. , 3. , 2. , 5. ) ;
912
961
let e = f32x4:: new ( 1. , 4. , 3. , 5. ) ;
913
- let r: f32x4 = :: mem:: transmute ( vpmaxq_f32 ( :: mem:: transmute ( a) , :: mem:: transmute ( b) ) ) ;
962
+ let r: f32x4 = :: mem:: transmute ( vpmaxq_f32 (
963
+ :: mem:: transmute ( a) ,
964
+ :: mem:: transmute ( b) ,
965
+ ) ) ;
914
966
assert_eq ! ( r, e) ;
915
967
}
916
968
@@ -919,7 +971,10 @@ mod tests {
919
971
let a = f64x2:: new ( 1. , -2. ) ;
920
972
let b = f64x2:: new ( 0. , 3. ) ;
921
973
let e = f64x2:: new ( 1. , 3. ) ;
922
- let r: f64x2 = :: mem:: transmute ( vpmaxq_f64 ( :: mem:: transmute ( a) , :: mem:: transmute ( b) ) ) ;
974
+ let r: f64x2 = :: mem:: transmute ( vpmaxq_f64 (
975
+ :: mem:: transmute ( a) ,
976
+ :: mem:: transmute ( b) ,
977
+ ) ) ;
923
978
assert_eq ! ( r, e) ;
924
979
}
925
980
}
0 commit comments