@@ -4752,6 +4752,46 @@ pub unsafe fn vec_cmpnrg_idx<T: sealed::VectorCompareRange>(a: T, b: T, c: T) ->
4752
4752
a. vstrc :: < { FindImm :: NeIdx as u32 } > ( b, c)
4753
4753
}
4754
4754
4755
+ /// Vector Compare Ranges with Condition Code
4756
+ #[ inline]
4757
+ #[ target_feature( enable = "vector" ) ]
4758
+ #[ unstable( feature = "stdarch_s390x" , issue = "135681" ) ]
4759
+ pub unsafe fn vec_cmprg_cc < T : sealed:: VectorCompareRange > ( a : T , b : T , c : T , d : * mut i32 ) -> T :: Result {
4760
+ let ( x, y) = a. vstrcs :: < { FindImm :: Eq as u32 } > ( b, c) ;
4761
+ d. write ( y) ;
4762
+ x
4763
+ }
4764
+
4765
+ /// Vector Compare Not in Ranges with Condition Code
4766
+ #[ inline]
4767
+ #[ target_feature( enable = "vector" ) ]
4768
+ #[ unstable( feature = "stdarch_s390x" , issue = "135681" ) ]
4769
+ pub unsafe fn vec_cmpnrg_cc < T : sealed:: VectorCompareRange > ( a : T , b : T , c : T , d : * mut i32 ) -> T :: Result {
4770
+ let ( x, y) = a. vstrcs :: < { FindImm :: Ne as u32 } > ( b, c) ;
4771
+ d. write ( y) ;
4772
+ x
4773
+ }
4774
+
4775
+ /// Vector Compare Ranges Index with Condition Code
4776
+ #[ inline]
4777
+ #[ target_feature( enable = "vector" ) ]
4778
+ #[ unstable( feature = "stdarch_s390x" , issue = "135681" ) ]
4779
+ pub unsafe fn vec_cmprg_idx_cc < T : sealed:: VectorCompareRange > ( a : T , b : T , c : T , d : * mut i32 ) -> T :: Result {
4780
+ let ( x, y) = a. vstrcs :: < { FindImm :: EqIdx as u32 } > ( b, c) ;
4781
+ d. write ( y) ;
4782
+ x
4783
+ }
4784
+
4785
+ /// Vector Compare Not in Ranges Index with Condition Code
4786
+ #[ inline]
4787
+ #[ target_feature( enable = "vector" ) ]
4788
+ #[ unstable( feature = "stdarch_s390x" , issue = "135681" ) ]
4789
+ pub unsafe fn vec_cmpnrg_idx_cc < T : sealed:: VectorCompareRange > ( a : T , b : T , c : T , d : * mut i32 ) -> T :: Result {
4790
+ let ( x, y) = a. vstrcs :: < { FindImm :: NeIdx as u32 } > ( b, c) ;
4791
+ d. write ( y) ;
4792
+ x
4793
+ }
4794
+
4755
4795
#[ cfg( test) ]
4756
4796
mod tests {
4757
4797
use super :: * ;
0 commit comments