[PATCH] D76662: [PowerPC]: Don't allow r0 as a target for LD_GOT_TPREL_L/32

Nemanja Ivanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 24 08:02:46 PDT 2020


nemanjai added a comment.

Ah, OK. This makes sense.
I realize that it is not really possible to write a test case to show the allocation of R0 previous to this patch. However, would you modify existing test cases that use regex matching for the target register such as `[[REG:[0-9]+]]` to something like `[[REG:[1-9][0-9]*]]` to demonstrate that R0 is not a valid candidate for the regex match?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76662/new/

https://reviews.llvm.org/D76662





More information about the llvm-commits mailing list