Mark condition/carry bit as clobbered in C-SKY inline assembly

This commit is contained in:
Taiki Endo 2025-01-29 06:46:05 +09:00
parent fdd1a3b026
commit 93465e6c31
3 changed files with 29 additions and 1 deletions

View file

@ -286,7 +286,9 @@ impl<'ll, 'tcx> AsmBuilderMethods<'tcx> for Builder<'_, 'll, 'tcx> {
InlineAsmArch::M68k => {
constraints.push("~{ccr}".to_string());
}
InlineAsmArch::CSKY => {}
InlineAsmArch::CSKY => {
constraints.push("~{psr}".to_string());
}
}
}
if !options.contains(InlineAsmOptions::NOMEM) {