Support #[repr(simd)] types in input/output of PowerPC inline assembly

This commit is contained in:
Taiki Endo
2024-11-29 00:24:36 +09:00
parent 9b4d7c6a40
commit 0f8ebba54a
12 changed files with 595 additions and 352 deletions

View File

@@ -51,7 +51,11 @@ impl PowerPCInlineAsmRegClass {
}
}
Self::freg => types! { _: F32, F64; },
Self::vreg => &[],
// FIXME: vsx also supports integers and floats: https://github.com/rust-lang/rust/pull/131551#discussion_r1797651773
Self::vreg => types! {
altivec: VecI8(16), VecI16(8), VecI32(4), VecF32(4);
vsx: VecI64(2), VecF64(2);
},
Self::cr | Self::xer => &[],
}
}