diff options
| author | Daniel Paoliello <danpao@microsoft.com> | 2024-03-28 09:37:10 -0700 |
|---|---|---|
| committer | Daniel Paoliello <danpao@microsoft.com> | 2024-04-10 10:06:44 -0700 |
| commit | 2e44d29460bd4e8b94d3a0f491b04b9580506811 (patch) | |
| tree | 6a670ce8ea8c3a5ccf340c95b87a9fe5fc36b14e /compiler/rustc_codegen_llvm/src/asm.rs | |
| parent | 5974fe87c4d711949caa64fc1e8366685c8fc190 (diff) | |
| download | rust-2e44d29460bd4e8b94d3a0f491b04b9580506811.tar.gz rust-2e44d29460bd4e8b94d3a0f491b04b9580506811.zip | |
Add support for Arm64EC inline assembly
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/asm.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/asm.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/asm.rs b/compiler/rustc_codegen_llvm/src/asm.rs index 500904ce188..e09869cf425 100644 --- a/compiler/rustc_codegen_llvm/src/asm.rs +++ b/compiler/rustc_codegen_llvm/src/asm.rs @@ -220,7 +220,7 @@ impl<'ll, 'tcx> AsmBuilderMethods<'tcx> for Builder<'_, 'll, 'tcx> { constraints.append(&mut clobbers); if !options.contains(InlineAsmOptions::PRESERVES_FLAGS) { match asm_arch { - InlineAsmArch::AArch64 | InlineAsmArch::Arm => { + InlineAsmArch::AArch64 | InlineAsmArch::Arm64EC | InlineAsmArch::Arm => { constraints.push("~{cc}".to_string()); } InlineAsmArch::X86 | InlineAsmArch::X86_64 => { |
