diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-15 06:33:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-15 06:33:39 +0000 |
commit | 85cf7d737dd26e984974e072d28225bd00c625c2 (patch) | |
tree | ed57b511a6142d33fc75284afba80626fe7c2d6c /lib/Target/PowerPC/PPCInstrInfo.td | |
parent | b719437325681bec89572cccb53916b7a17f1e60 (diff) | |
download | external_llvm-85cf7d737dd26e984974e072d28225bd00c625c2.zip external_llvm-85cf7d737dd26e984974e072d28225bd00c625c2.tar.gz external_llvm-85cf7d737dd26e984974e072d28225bd00c625c2.tar.bz2 |
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/PPCInstrInfo.td')
-rw-r--r-- | lib/Target/PowerPC/PPCInstrInfo.td | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td index 269f371..11f84d0 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.td +++ b/lib/Target/PowerPC/PPCInstrInfo.td @@ -302,9 +302,11 @@ def aaddr : Operand<iPTR> { def piclabel: Operand<iPTR> {} def symbolHi: Operand<i32> { let PrintMethod = "printSymbolHi"; + let EncoderMethod = "getHA16Encoding"; } def symbolLo: Operand<i32> { let PrintMethod = "printSymbolLo"; + let EncoderMethod = "getLO16Encoding"; } def crbitm: Operand<i8> { let PrintMethod = "printcrbitm"; |