This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gold patch] (PR 22213) Fix incorrect register mask.


I committed the following patch to fix a typo in sparc.cc.

-cary

2017-09-26  Cary Coutant  <ccoutant@gmail.com>

gold/
        PR gold/22213
        * sparc.cc (Target_sparc): Fix incorrect register mask.

diff --git a/gold/sparc.cc b/gold/sparc.cc
index 54c7c33498..965d9939ae 100644
--- a/gold/sparc.cc
+++ b/gold/sparc.cc
@@ -4164,7 +4164,7 @@ Target_sparc<size, big_endian>::Relocate::relax_call(
   if (op3 != 0x3d)
     {
       // First check RS1
-      reg = (delay_insn >> 14) & 0x15;
+      reg = (delay_insn >> 14) & 0x1f;
       if (reg == 15)
        return;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]