mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
Mark LoongArch float-point condition flags as clobbered in inline assembly
This commit is contained in:
parent
ad6b20bf52
commit
8ad78cb02c
@ -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 => {}
|
||||
InlineAsmArch::SpirV => {}
|
||||
|
Loading…
Reference in New Issue
Block a user