Rollup merge of #111332 - loongarch-rs:inline-asm, r=Amanieu
Improve inline asm for LoongArch This PR is a sub-part of https://github.com/rust-lang/rust/pull/111235, to improve inline asm for LoongArch. r? `@Amanieu`
This commit is contained in:
commit
2a8adcc966
2 changed files with 16 additions and 6 deletions
|
@ -236,7 +236,18 @@ impl<'ll, 'tcx> AsmBuilderMethods<'tcx> for Builder<'_, 'll, 'tcx> {
|
|||
InlineAsmArch::Nvptx64 => {}
|
||||
InlineAsmArch::PowerPC | InlineAsmArch::PowerPC64 => {}
|
||||
InlineAsmArch::Hexagon => {}
|
||||
InlineAsmArch::LoongArch64 => {}
|
||||
InlineAsmArch::LoongArch64 => {
|
||||
constraints.extend_from_slice(&[
|
||||
"~{$fcc0}".to_string(),
|
||||
"~{$fcc1}".to_string(),
|
||||
"~{$fcc2}".to_string(),
|
||||
"~{$fcc3}".to_string(),
|
||||
"~{$fcc4}".to_string(),
|
||||
"~{$fcc5}".to_string(),
|
||||
"~{$fcc6}".to_string(),
|
||||
"~{$fcc7}".to_string(),
|
||||
]);
|
||||
}
|
||||
InlineAsmArch::Mips | InlineAsmArch::Mips64 => {}
|
||||
InlineAsmArch::S390x => {
|
||||
constraints.push("~{cc}".to_string());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue