File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
crates/core_arch/src/powerpc Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,9 @@ extern "C" {
318
318
fn vupkhsh ( a : vector_signed_short ) -> vector_signed_int ;
319
319
#[ link_name = "llvm.ppc.altivec.vupklsh" ]
320
320
fn vupklsh ( a : vector_signed_short ) -> vector_signed_int ;
321
+
322
+ #[ link_name = "llvm.ppc.altivec.mfvscr" ]
323
+ fn mfvscr ( ) -> vector_unsigned_short ;
321
324
}
322
325
323
326
macro_rules! s_t_l {
@@ -2737,6 +2740,14 @@ where
2737
2740
a. vec_max ( b)
2738
2741
}
2739
2742
2743
+ /// Move From Vector Status and Control Register.
2744
+ #[ inline]
2745
+ #[ target_feature( enable = "altivec" ) ]
2746
+ #[ cfg_attr( test, assert_instr( mfvscr) ) ]
2747
+ pub unsafe fn vec_mfvscr ( ) -> vector_unsigned_short {
2748
+ mfvscr ( )
2749
+ }
2750
+
2740
2751
/// Vector add.
2741
2752
#[ inline]
2742
2753
#[ target_feature( enable = "altivec" ) ]
You can’t perform that action at this time.
0 commit comments