summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCInstr64Bit.td
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-15 06:33:39 +0000
committerChris Lattner <sabre@nondot.org>2010-11-15 06:33:39 +0000
commit85cf7d737dd26e984974e072d28225bd00c625c2 (patch)
treeed57b511a6142d33fc75284afba80626fe7c2d6c /lib/Target/PowerPC/PPCInstr64Bit.td
parentb719437325681bec89572cccb53916b7a17f1e60 (diff)
downloadllvm-85cf7d737dd26e984974e072d28225bd00c625c2.tar.gz
llvm-85cf7d737dd26e984974e072d28225bd00c625c2.tar.bz2
llvm-85cf7d737dd26e984974e072d28225bd00c625c2.tar.xz
implement the start of support for lo16 and ha16, allowing us to get stuff like:
lis r4, ha16(__ZL4init) ; encoding: [0x3c,0x80,A,A] ; fixup A - offset: 0, value: ha16(__ZL4init), kind: fixup_ppc_ha16 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119127 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCInstr64Bit.td')
-rw-r--r--lib/Target/PowerPC/PPCInstr64Bit.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCInstr64Bit.td b/lib/Target/PowerPC/PPCInstr64Bit.td
index 53db733656..0b96bcd635 100644
--- a/lib/Target/PowerPC/PPCInstr64Bit.td
+++ b/lib/Target/PowerPC/PPCInstr64Bit.td
@@ -23,9 +23,11 @@ def u16imm64 : Operand<i64> {
}
def symbolHi64 : Operand<i64> {
let PrintMethod = "printSymbolHi";
+ let EncoderMethod = "getHA16Encoding";
}
def symbolLo64 : Operand<i64> {
let PrintMethod = "printSymbolLo";
+ let EncoderMethod = "getLO16Encoding";
}
//===----------------------------------------------------------------------===//