rust/tests/codegen-llvm/asm
Stuart Cook 46be365a60
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.
dd7fda5700/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
2025-09-22 20:25:14 +10:00
..
aarch64-clobbers.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
avr-clobbers.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
bpf-clobbers.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
critical.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
csky-clobbers.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
foo.s Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
global_asm.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
global_asm_include.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
global_asm_x2.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
goto.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
hexagon-clobbers.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
may_unwind.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
maybe-uninit.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
msp430-clobbers.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
multiple-options.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
options.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
powerpc-clobbers.rs Support ctr and lr as clobber-only registers in PowerPC inline assembly 2025-09-21 13:48:22 +09:00
readonly-not-pure.rs emit attribute for readonly non-pure inline assembly 2025-09-21 21:16:06 +02:00
riscv-clobbers.rs rustc_codegen_llvm: Adjust RISC-V inline assembly's clobber list 2025-09-15 02:16:34 +00:00
s390x-clobbers.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
sanitize-llvm.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
sparc-clobbers.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
x86-clobber_abi.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
x86-clobbers.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
x86-target-clobbers.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00