Add asm!() support for PowerPC64

This commit is contained in:
Dr. Chat
2021-05-13 22:31:47 -05:00
parent 17f30e5451
commit 69acee3ffe
4 changed files with 47 additions and 7 deletions

View File

@@ -33,10 +33,16 @@ impl PowerPCInlineAsmRegClass {
pub fn supported_types(
self,
_arch: InlineAsmArch,
arch: InlineAsmArch,
) -> &'static [(InlineAsmType, Option<&'static str>)] {
match self {
Self::reg | Self::reg_nonzero => types! { _: I8, I16, I32; },
Self::reg | Self::reg_nonzero => {
if arch == InlineAsmArch::PowerPC {
types! { _: I8, I16, I32; }
} else {
types! { _: I8, I16, I32, I64; }
}
}
Self::freg => types! { _: F32, F64; },
}
}