OSDN Git Service

[PPC64] Support "symbol@high" and "symbol@higha" symbol modifers.
authorSean Fertile <sfertile@ca.ibm.com>
Fri, 15 Jun 2018 19:47:11 +0000 (19:47 +0000)
committerSean Fertile <sfertile@ca.ibm.com>
Fri, 15 Jun 2018 19:47:11 +0000 (19:47 +0000)
commit80cb547d1159494f6bcc166cd570aaaaaa803253
treef116c838362a6d8aec88ef6ba8c382ddd47acf94
parent3a32fa4e62f4c3d39dd5e9b048fc46aa803db40b
[PPC64] Support "symbol@high" and "symbol@higha" symbol modifers.

Add support for the "@high" and "@higha" symbol modifiers in powerpc64 assembly.
The modifiers represent accessing the segment consiting of bits 16-31 of a
64-bit address/offset.

Differential Revision: https://reviews.llvm.org/D47729

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334855 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/BinaryFormat/ELFRelocs/PowerPC64.def
include/llvm/MC/MCExpr.h
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
lib/MC/MCExpr.cpp
lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.cpp
lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.h
test/MC/PowerPC/ppc64-fixup-apply.s
test/MC/PowerPC/ppc64-fixups.s