[llvm] r198739 - [Sparc] Correct the mask for fixup_sparc_br19.
Venkatraman Govindaraju
venkatra at cs.wisc.edu
Tue Jan 7 22:46:51 PST 2014
Author: venkatra
Date: Wed Jan 8 00:46:51 2014
New Revision: 198739
URL: http://llvm.org/viewvc/llvm-project?rev=198739&view=rev
Log:
[Sparc] Correct the mask for fixup_sparc_br19.
Modified:
llvm/trunk/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp
Modified: llvm/trunk/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp?rev=198739&r1=198738&r2=198739&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp Wed Jan 8 00:46:51 2014
@@ -31,7 +31,7 @@ static unsigned adjustFixupValue(unsigne
case Sparc::fixup_sparc_br22:
return (Value >> 2) & 0x3fffff;
case Sparc::fixup_sparc_br19:
- return (Value >> 2) & 0x1ffff;
+ return (Value >> 2) & 0x7ffff;
case Sparc::fixup_sparc_hi22:
return (Value >> 10) & 0x3fffff;
case Sparc::fixup_sparc_lo10:
More information about the llvm-commits
mailing list