summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-04-09 22:10:05 +0000
committerChris Lattner <sabre@nondot.org>2007-04-09 22:10:05 +0000
commit19ccd6226c9a8b82cb2d8e84243c95ccd4ff5067 (patch)
treeffe6030c48444d5db1901c42b630fb53fd02f6eb /llvm/lib/Target
parentda964a285239b1e0e03d1647be848e445793e188 (diff)
downloadbcm5719-llvm-19ccd6226c9a8b82cb2d8e84243c95ccd4ff5067.tar.gz
bcm5719-llvm-19ccd6226c9a8b82cb2d8e84243c95ccd4ff5067.zip
Fix a bug in PPCTargetLowering::isLegalAddressingMode, scales other than 0/1/2
are always unsupported. llvm-svn: 35835
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 4b2d448d343..13ab52abd4b 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -3389,6 +3389,9 @@ bool PPCTargetLowering::isLegalAddressingMode(const AddrMode &AM,
return false;
// Allow 2*r as r+r.
break;
+ default:
+ // No other scales are supported.
+ return false;
}
return true;
OpenPOWER on IntegriCloud