From 00956d3a8ab1b56fcdf63aee4ed5c5a1d46a7a48 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Tue, 26 Sep 2017 07:33:04 -0700 Subject: [PATCH] Fix incorrect register mask. PR gold/22213 * sparc.cc (Target_sparc): Fix incorrect register mask. --- gold/ChangeLog | 5 +++++ gold/sparc.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index 0ac7e9e3a6d..697a40ade1a 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2017-09-26 Cary Coutant + + PR gold/22213 + * sparc.cc (Target_sparc): Fix incorrect register mask. + 2017-09-22 Jim Wilson * aarch64.cc (Target_aarch64::aarch64_info): Set diff --git a/gold/sparc.cc b/gold/sparc.cc index 54c7c334984..965d9939aea 100644 --- a/gold/sparc.cc +++ b/gold/sparc.cc @@ -4164,7 +4164,7 @@ Target_sparc::Relocate::relax_call( if (op3 != 0x3d) { // First check RS1 - reg = (delay_insn >> 14) & 0x15; + reg = (delay_insn >> 14) & 0x1f; if (reg == 15) return; -- 2.30.2