diff options
author | Brad Smith <brad@comstyle.com> | 2023-04-26 18:53:52 -0400 |
---|---|---|
committer | Brad Smith <brad@comstyle.com> | 2023-04-26 18:56:01 -0400 |
commit | 92f1156efc5f762ac3a4cc4eebe62742f6d75789 (patch) | |
tree | edee5a714811f7265bf1ccdb9f3a2e4cd7b9c5ae /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | |
parent | c30c29188770d2981a3dca826768319e1138b124 (diff) | |
download | llvm-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