summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-07-28 04:42:11 +0000
committerChris Lattner <sabre@nondot.org>2005-07-28 04:42:11 +0000
commit7c38bd14ef48fbac9ed1c597936a2d186cd6f174 (patch)
treedba716fde09da8ae944e5039ee4edc22e34d5b77 /llvm/lib
parent87c5a8a48a0740c1c1f4085b86a23774d9311121 (diff)
downloadbcm5719-llvm-7c38bd14ef48fbac9ed1c597936a2d186cd6f174.tar.gz
bcm5719-llvm-7c38bd14ef48fbac9ed1c597936a2d186cd6f174.zip
Specify the correct number of operands
llvm-svn: 22535
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp b/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
index 63188420493..efdb8b5b289 100644
--- a/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
+++ b/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
@@ -1385,7 +1385,7 @@ unsigned ISel::SelectExpr(SDOperand N, bool Recording) {
BuildMI(BB, PPC::ADDIS, 2, Tmp1).addReg(getGlobalBaseReg())
.addGlobalAddress(GV);
else
- BuildMI(BB, PPC::LIS, 2, Tmp1).addGlobalAddress(GV);
+ BuildMI(BB, PPC::LIS, 1, Tmp1).addGlobalAddress(GV);
if (GV->hasWeakLinkage() || GV->isExternal()) {
BuildMI(BB, PPC::LWZ, 2, Result).addGlobalAddress(GV).addReg(Tmp1);
} else {
@@ -1441,7 +1441,7 @@ unsigned ISel::SelectExpr(SDOperand N, bool Recording) {
BuildMI(BB, PPC::ADDIS, 2, Tmp1).addReg(getGlobalBaseReg())
.addGlobalAddress(GV);
else
- BuildMI(BB, PPC::LIS, 2, Tmp1).addGlobalAddress(GV);
+ BuildMI(BB, PPC::LIS, 1, Tmp1).addGlobalAddress(GV);
if (GV->hasWeakLinkage() || GV->isExternal()) {
Tmp2 = MakeReg(MVT::i32);
BuildMI(BB, PPC::LWZ, 2, Tmp2).addGlobalAddress(GV).addReg(Tmp1);
@@ -2499,7 +2499,7 @@ void ISel::Select(SDOperand N) {
BuildMI(BB, PPC::ADDIS, 2, Tmp2).addReg(getGlobalBaseReg())
.addGlobalAddress(GV);
else
- BuildMI(BB, PPC::LIS, 2, Tmp2).addGlobalAddress(GV);
+ BuildMI(BB, PPC::LIS, 1, Tmp2).addGlobalAddress(GV);
if (GV->hasWeakLinkage() || GV->isExternal()) {
Tmp3 = MakeReg(MVT::i32);
BuildMI(BB, PPC::LWZ, 2, Tmp3).addGlobalAddress(GV).addReg(Tmp2);
OpenPOWER on IntegriCloud