[PATCH] D83255: [PowerPC] Split s34imm into two types
Stefan Pintilie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 6 13:22:07 PDT 2020
stefanp created this revision.
stefanp added reviewers: nemanjai, sfertile, lei, NeHuang, hfinkel.
Herald added subscribers: shchenz, kbarton, hiraditya.
Herald added a project: LLVM.
Currently the instruction paddi always takes s34imm as the type for the
34 bit immediate. However, the PC Relative form of the instruction should
not produce the same fixup as the non PC Relative form.
This patch splits the s34imm type into s34imm and s34imm_pcrel so that two
different fixups can be emitted.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D83255
Files:
llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCFixupKinds.h
llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.h
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/lib/Target/PowerPC/PPCInstrPrefix.td
llvm/test/MC/PowerPC/ppc64-errors-emit-obj.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83255.275820.patch
Type: text/x-patch
Size: 10867 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200706/3c2c9c00/attachment.bin>
More information about the llvm-commits
mailing list