We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2097ed4 commit 8f893feCopy full SHA for 8f893fe
crates/core_arch/src/powerpc/altivec.rs
@@ -318,6 +318,9 @@ extern "C" {
318
fn vupkhsh(a: vector_signed_short) -> vector_signed_int;
319
#[link_name = "llvm.ppc.altivec.vupklsh"]
320
fn vupklsh(a: vector_signed_short) -> vector_signed_int;
321
+
322
+ #[link_name = "llvm.ppc.altivec.mfvscr"]
323
+ fn mfvscr() -> vector_unsigned_short;
324
}
325
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
2751
/// Vector add.
2752
#[inline]
2753
#[target_feature(enable = "altivec")]
0 commit comments