[llvm] [SPARC][MC] Fix `%gdop_hix22()` and `%gdop_lox10()` to use correct relocations (PR #137915)

Alex Rønne Petersen via llvm-commits llvm-commits at lists.llvm.org
Sat May 3 00:02:26 PDT 2025


alexrp wrote:

> You might add `// clang-format off ` and on if needed, like what I added to SparcMCExpr.cpp

Done.

> Note: if a fixup kind always leads to a relocation, you can encode its value literally.

That makes sense, but from what I can tell, the SPARC backend would need some refactoring to do this, so probably best not to mix in with this change?

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


More information about the llvm-commits mailing list