OSDN Git Service

[PowerPC] Split s34imm into two types
authorStefan Pintilie <stefanp@ca.ibm.com>
Thu, 9 Jul 2020 16:28:32 +0000 (11:28 -0500)
committerKamau Bridgeman <kamau.bridgeman@ibm.com>
Thu, 9 Jul 2020 16:28:32 +0000 (11:28 -0500)
commitbd2068031121adf5a0e28d9306a1741d6f0bbd87
tree23aa5d55bc4359c7ff7e73f7f48231e70516b437
parent9477d39e61f8e0076e47fef81941e8a24e979d6f
[PowerPC] Split s34imm into two types

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.

Reviewed By: kamaub, nemanjai

Differential Revision: https://reviews.llvm.org/D83255
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 [new file with mode: 0644]