[llvm] [Hexagon] Provide a custom decoder for Y4_crswap10 (PR #153849)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 15 15:27:02 PDT 2025


s-barannikov wrote:

> I think it can be easier to fix this by defining double-size crswap the same way as single crswap. The difference is in the single-register crswap, sgp0/1 are hard-coded in the instruction syntax, while the double-register one uses a register reference (`$sgp10`). Since there is only one register that can be used, there should be no reason to store it as an argument.

I agree that would be better. However, it doesn't seem is possible to put "sgp1:0" in the asm string -- it will get tokenized into three different tokens by TableGen backend when generating AsmMatcher.


https://github.com/llvm/llvm-project/pull/153849


More information about the llvm-commits mailing list