diff options
| author | Taiki Endo <te316e89@gmail.com> | 2025-01-29 06:46:05 +0900 |
|---|---|---|
| committer | Taiki Endo <te316e89@gmail.com> | 2025-01-29 06:46:05 +0900 |
| commit | 93465e6c3106043b8db7089ff7a1a4d610d8f79f (patch) | |
| tree | 2da40315bd0435474c19cda59a127ad5edc81c79 /compiler/rustc_codegen_llvm/src/asm.rs | |
| parent | fdd1a3b02687817cea41f6bacae3d5fbed2b2cd0 (diff) | |
| download | rust-93465e6c3106043b8db7089ff7a1a4d610d8f79f.tar.gz rust-93465e6c3106043b8db7089ff7a1a4d610d8f79f.zip | |
Mark condition/carry bit as clobbered in C-SKY inline assembly
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/asm.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/asm.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/asm.rs b/compiler/rustc_codegen_llvm/src/asm.rs index 3722d4350a2..be5673eddf9 100644 --- a/compiler/rustc_codegen_llvm/src/asm.rs +++ b/compiler/rustc_codegen_llvm/src/asm.rs @@ -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) { |
