[PATCH] D144012: [SPARC][MC] Fix encoding of backwards BPr branches

Koakuma via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 27 08:03:02 PDT 2023


koakuma updated this revision to Diff 517557.
koakuma added a comment.

Remove the offset shift calculation. We already took care of proper placement of BPr offset value through other means, so this is not needed anymore.

This should also takes care of the sanitizer errors.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144012/new/

https://reviews.llvm.org/D144012

Files:
  llvm/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp
  llvm/lib/Target/Sparc/MCTargetDesc/SparcELFObjectWriter.cpp
  llvm/lib/Target/Sparc/MCTargetDesc/SparcFixupKinds.h
  llvm/lib/Target/Sparc/MCTargetDesc/SparcMCCodeEmitter.cpp
  llvm/test/MC/Sparc/sparc64-bpr-offset.s
  llvm/test/MC/Sparc/sparc64-ctrl-instructions.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144012.517557.patch
Type: text/x-patch
Size: 12370 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230427/b60ad24a/attachment.bin>


More information about the llvm-commits mailing list