aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
diff options
context:
space:
mode:
authorBrad Smith <brad@comstyle.com>2023-04-26 18:53:52 -0400
committerBrad Smith <brad@comstyle.com>2023-04-26 18:56:01 -0400
commit92f1156efc5f762ac3a4cc4eebe62742f6d75789 (patch)
treeedee5a714811f7265bf1ccdb9f3a2e4cd7b9c5ae /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
parentc30c29188770d2981a3dca826768319e1138b124 (diff)
downloadllvm-92f1156efc5f762ac3a4cc4eebe62742f6d75789.zip
llvm-92f1156efc5f762ac3a4cc4eebe62742f6d75789.tar.gz
llvm-92f1156efc5f762ac3a4cc4eebe62742f6d75789.tar.bz2
[SPARC][MC] Fix encoding of backwards BPr branches
Make sure that the upper bits of the offset is placed in bits 20-21 of the instruction word. This fixes the encoding of backwards (negative offset) BPr branches. (Previously, the upper two bits of the offset would overwrite parts of the rs1 field, causing it to branch on the wrong register, with the wrong offset) Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D144012
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
0 files changed, 0 insertions, 0 deletions