[llvm-branch-commits] [SPARC][IAS] Add definitions for OSA 2011 instructions (PR #138403)

Sergei Barannikov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 27 02:16:15 PDT 2025


================
@@ -50,6 +50,15 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) {
     return (d16hi << 20) | d16lo;
   }
 
+  case ELF::R_SPARC_WDISP10: {
+    // 7.17 Compare and Branch
+    // Inst{20-19} = d10hi;
+    // Inst{12-5}  = d10lo;
+    unsigned d10hi = (Value >> 10) & 0x3;
----------------
s-barannikov wrote:

Assert that `Value` is a multiple of 4? (Assuming it is guaranteed elsewhere.)


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


More information about the llvm-branch-commits mailing list