about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-09-22 20:25:14 +1000
committerGitHub <noreply@github.com>2025-09-22 20:25:14 +1000
commit46be365a602495076171adeb603a682079e6c2eb (patch)
tree1b92dea815f2ba43a865a0a4e6d73634a492feca /compiler/rustc_codegen_llvm/src/builder.rs
parent40db498a0f0291dde25380adda38cce29e4668cd (diff)
parentf4b876867d609404be8a78220c0d5117303bb0f8 (diff)
downloadrust-46be365a602495076171adeb603a682079e6c2eb.tar.gz
rust-46be365a602495076171adeb603a682079e6c2eb.zip
Rollup merge of #146831 - taiki-e:powerpc-clobber, r=Amanieu
Support ctr and lr as clobber-only registers in PowerPC inline assembly

Follow-up to rust-lang/rust#131341.

CTR and LR are marked as volatile in all ABIs, but I skipped them in rust-lang/rust#131341 due to they are currently marked as reserved.
https://github.com/rust-lang/rust/blob/dd7fda570040e8a736f7d8bc28ddd1b444aabc82/compiler/rustc_target/src/asm/powerpc.rs#L209-L212

However, they are actually only unusable as input/output of inline assembly, and should be fine to support as clobber-only registers as discussed in [#t-compiler > ppc/ppc64 inline asm support](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/ppc.2Fppc64.20inline.20asm.20support/with/540413845).

r? ````@Amanieu```` or ````@workingjubilee````

cc ````@programmerjake````

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