[PATCH] D122012: [PowerPC] The BL8_NOTOC_RM instruction needs to produce a notoc relocation.

Stefan Pintilie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 18 08:27:44 PDT 2022


stefanp created this revision.
stefanp added reviewers: lei, nemanjai.
Herald added subscribers: shchenz, kbarton, hiraditya.
Herald added a project: All.
stefanp requested review of this revision.
Herald added a project: LLVM.

The BL8_NOTOC_RM instruction was incorrectly producing a relocation that reqired
a TOC restore after the call. This patch fixes that issue and the notoc
relocation is now used.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122012

Files:
  llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp
  llvm/lib/Target/PowerPC/PPCMCInstLower.cpp
  llvm/test/CodeGen/PowerPC/ppc64-notoc-rm-relocation.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122012.416516.patch
Type: text/x-patch
Size: 4228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220318/2120a863/attachment.bin>


More information about the llvm-commits mailing list