Skip to content

Commit

Permalink
Rollup merge of #111331 - taiki-e:s390x-asm-cc, r=Amanieu
Browse files Browse the repository at this point in the history
Mark s390x condition code register as clobbered in inline assembly

Various s390x instructions (arithmetic operations, logical operations, comparisons, etc. see also "Condition Codes" section in [z/Architecture Reference Summary](https://www.ibm.com/support/pages/zarchitecture-reference-summary)) modify condition code register `cc`, but AFAIK there is currently no way to mark it as clobbered in `asm!`.

`cc` register definition in LLVM:
https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/SystemZ/SystemZRegisterInfo.td#L320

This PR also updates asm_experimental_arch docs in the unstable-book to mention s390x registers.

cc `@uweigand`

r? `@Amanieu`
  • Loading branch information
JohnTitor authored May 8, 2023
2 parents 1769ac6 + 179e93e commit 6ce5cbb
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 6ce5cbb

Please sign in to comment.