aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC/PPCInstrInfo.td
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-17 07:04:43 +0000
committerChris Lattner <sabre@nondot.org>2005-11-17 07:04:43 +0000
commitbae5b3c1c6e1009898f66211a6fd466c1e809ccc (patch)
treec5ae1a6724c9639901ba5cd94ae4432d9d9ba6a1 /lib/Target/PowerPC/PPCInstrInfo.td
parent0c8fbe33a4bdf7c60e0cfd5a9c86499c817d9f1a (diff)
downloadexternal_llvm-bae5b3c1c6e1009898f66211a6fd466c1e809ccc.zip
external_llvm-bae5b3c1c6e1009898f66211a6fd466c1e809ccc.tar.gz
external_llvm-bae5b3c1c6e1009898f66211a6fd466c1e809ccc.tar.bz2
LI could theoretically be used for the lo-part of a global address, just like
lis can be used for the high part. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24388 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCInstrInfo.td')
-rw-r--r--lib/Target/PowerPC/PPCInstrInfo.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td
index f65de61..54acd9b 100644
--- a/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/lib/Target/PowerPC/PPCInstrInfo.td
@@ -260,7 +260,7 @@ def MULLI : DForm_2< 7, (ops GPRC:$rD, GPRC:$rA, s16imm:$imm),
def SUBFIC : DForm_2< 8, (ops GPRC:$rD, GPRC:$rA, s16imm:$imm),
"subfic $rD, $rA, $imm", IntGeneral,
[(set GPRC:$rD, (sub immSExt16:$imm, GPRC:$rA))]>;
-def LI : DForm_2_r0<14, (ops GPRC:$rD, s16imm:$imm),
+def LI : DForm_2_r0<14, (ops GPRC:$rD, symbolLo:$imm),
"li $rD, $imm", IntGeneral,
[(set GPRC:$rD, immSExt16:$imm)]>;
def LIS : DForm_2_r0<15, (ops GPRC:$rD, symbolHi:$imm),