Add bad-reg inline assembly ui test for RISC-V and s390x by taiki-e · Pull Request #132516 · rust-lang/rust (original) (raw)

#131341 (comment)

Btw, such unsupported registers are present in most architectures, but only aarch64/arm64ec, x86_64, and not yet merged sparc/sparc64 (and powerpc/powerpc64 by this PR) currently have ui tests for them. I plan to add tests for other arches later.

Starting with RISC-V and s390x, which I'm familiar with and relatively easy to check for correctness.

(Relevant rustc code are supported_types/def_regs/overlapping_regs in compiler/rustc_target/src/asm/riscv.rs and compiler/rustc_target/src/asm/s390x.rs.)

r? workingjubilee

@rustbot label +A-inline-assembly