about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorTaiki Endo <te316e89@gmail.com>2023-05-08 15:42:56 +0900
committerTaiki Endo <te316e89@gmail.com>2023-05-08 15:42:56 +0900
commite61bb8810b26de043d3b4ba2560e78af71121a0e (patch)
treeea5481bbfb301d27495fac6cd545b00d20cffc8f /compiler/rustc_codegen_llvm/src
parentc4190f2d3a46a59f435f7b42f58bc22b2f4d6917 (diff)
downloadrust-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.rs4
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 => {}