diff options
| author | Taiki Endo <te316e89@gmail.com> | 2023-05-08 15:42:56 +0900 |
|---|---|---|
| committer | Taiki Endo <te316e89@gmail.com> | 2023-05-08 15:42:56 +0900 |
| commit | e61bb8810b26de043d3b4ba2560e78af71121a0e (patch) | |
| tree | ea5481bbfb301d27495fac6cd545b00d20cffc8f /compiler/rustc_codegen_llvm/src | |
| parent | c4190f2d3a46a59f435f7b42f58bc22b2f4d6917 (diff) | |
| download | rust-e61bb8810b26de043d3b4ba2560e78af71121a0e.tar.gz rust-e61bb8810b26de043d3b4ba2560e78af71121a0e.zip | |
Mark s390x condition code register as clobbered in inline assembly
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -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 f9af103c9ad..70bcbf92f38 100644 --- a/compiler/rustc_codegen_llvm/src/asm.rs +++ b/compiler/rustc_codegen_llvm/src/asm.rs @@ -238,7 +238,9 @@ impl<'ll, 'tcx> AsmBuilderMethods<'tcx> for Builder<'_, 'll, 'tcx> { InlineAsmArch::Hexagon => {} InlineAsmArch::LoongArch64 => {} InlineAsmArch::Mips | InlineAsmArch::Mips64 => {} - InlineAsmArch::S390x => {} + InlineAsmArch::S390x => { + constraints.push("~{cc}".to_string()); + } InlineAsmArch::SpirV => {} InlineAsmArch::Wasm32 | InlineAsmArch::Wasm64 => {} InlineAsmArch::Bpf => {} |
