1
Fork 0

Support floats in input/output in vector registers of PowerPC inline assembly

This commit is contained in:
Taiki Endo 2024-11-29 03:10:07 +09:00
parent 0f8ebba54a
commit df8feb5067
7 changed files with 120 additions and 12 deletions

View file

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