[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCInstrInfo.td

Chris Lattner lattner at cs.uiuc.edu
Wed Nov 16 23:04:55 PST 2005



Changes in directory llvm/lib/Target/PowerPC:

PPCInstrInfo.td updated: 1.139 -> 1.140
---
Log message:

LI could theoretically be used for the lo-part of a global address, just like
lis can be used for the high part.


---
Diffs of the changes:  (+1 -1)

 PPCInstrInfo.td |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Target/PowerPC/PPCInstrInfo.td
diff -u llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.139 llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.140
--- llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.139	Tue Nov 15 18:48:01 2005
+++ llvm/lib/Target/PowerPC/PPCInstrInfo.td	Thu Nov 17 01:04:43 2005
@@ -260,7 +260,7 @@
 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),






More information about the llvm-commits mailing list