From: Misha Brukman Date: Tue, 20 Jul 2004 15:52:25 +0000 (+0000) Subject: Differentiate between global and weak symbol loads X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=86ddcf9d4feabad01359e487382fb96c60407c4e;p=oota-llvm.git Differentiate between global and weak symbol loads git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15037 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td index e05dca8cf4d..0e733ae12c1 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.td +++ b/lib/Target/PowerPC/PPCInstrInfo.td @@ -1257,7 +1257,8 @@ def ADJCALLSTACKUP : PPC32InstPatternPseudo<"ADJCALLSTACKUP", Pseudo>; def MovePCtoLR : PPC32InstPatternPseudo<"MovePCtoLR", Pseudo>; def IMPLICIT_DEF : PPC32InstPatternPseudo<"IMPLICIT_DEF", Pseudo>; -def LOADLoAddr : PPC32InstPattern0 <"la", Gpr, Gpr0, Simm16, 14, 0, 0>; +def LOADLoIndirect : PPC32InstPattern0 <"lwz", Gpr, Gpr0, Simm16, 14, 0, 0>; +def LOADLoDirect : PPC32InstPattern0 <"la", Gpr, Gpr0, Simm16, 14, 0, 0>; def LOADHiAddr : PPC32InstPattern0 <"addis", Gpr, Gpr0, Simm16, 15, 0, 0>; def ADDI : PPC32InstPattern0 <"addi", Gpr, Gpr0, Simm16, 14, 0, 0>;