================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to