about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-10-14 17:06:38 +0200
committerGitHub <noreply@github.com>2024-10-14 17:06:38 +0200
commitdbb0581ff516dc378011320b64e00a4a233333f5 (patch)
treeb6e3e95aed2e1ed07d5ef2e6d398396d17396108 /compiler/rustc_codegen_llvm/src/builder.rs
parentb8cdca8cce8f677429de0b73241dac3275677d5f (diff)
parent67ebb6c20b0cf8dfb587fd1085413232ccd8260c (diff)
downloadrust-dbb0581ff516dc378011320b64e00a4a233333f5.tar.gz
rust-dbb0581ff516dc378011320b64e00a4a233333f5.zip
Rollup merge of #131667 - taiki-e:aarch64-inline-asm-reg-emit, r=Amanieu
Fix AArch64InlineAsmReg::emit

Currently, this method uses `self as u32 - Self::x0 as u32` to get register index:
https://github.com/rust-lang/rust/blob/36780360b62320a61e2234b17ec600e8e4785509/compiler/rustc_target/src/asm/aarch64.rs#L204

However, this is incorrect for reasons explained in the following comment:
https://github.com/rust-lang/rust/blob/36780360b62320a61e2234b17ec600e8e4785509/compiler/rustc_codegen_llvm/src/asm.rs#L544-L549

r? ``@Amanieu``

``@rustbot`` label O-AArch64 +A-inline-assembly
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions