summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-03-30 01:45:43 +0000
committerNate Begeman <natebegeman@mac.com>2005-03-30 01:45:43 +0000
commit5851a661280d20e8f25b6a9d9cac701cd999cdad (patch)
treefe0480d736c4017458f584f86c7b06fe8c1de5e3 /llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
parent650d1742f7904b9414f749b31e22ca89388041f6 (diff)
downloadbcm5719-llvm-5851a661280d20e8f25b6a9d9cac701cd999cdad.tar.gz
bcm5719-llvm-5851a661280d20e8f25b6a9d9cac701cd999cdad.zip
Fix external symbol printing in the AsmPrinter. Tell the ISel that we
don't support things like memcpy directly. This allows a handful of the Shootout programs to work, yay! llvm-svn: 20939
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp b/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
index 823fef9b257..451ff031c6b 100644
--- a/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
+++ b/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
@@ -47,6 +47,10 @@ namespace {
addRegisterClass(MVT::f32, PPC32::FPRCRegisterClass);
addRegisterClass(MVT::f64, PPC32::FPRCRegisterClass);
+ setOperationAction(ISD::MEMMOVE, MVT::Other, Expand);
+ setOperationAction(ISD::MEMSET, MVT::Other, Expand);
+ setOperationAction(ISD::MEMCPY, MVT::Other, Expand);
+
computeRegisterProperties();
}
@@ -372,6 +376,7 @@ LowerVAArgNext(bool isVANext, SDOperand Chain, SDOperand VAList,
std::pair<SDOperand, SDOperand> PPC32TargetLowering::
LowerFrameReturnAddress(bool isFrameAddress, SDOperand Chain, unsigned Depth,
SelectionDAG &DAG) {
+ assert(0 && "LowerFrameReturnAddress unimplemented");
abort();
}
@@ -1072,6 +1077,7 @@ unsigned ISel::SelectExpr(SDOperand N) {
case ISD::FP_TO_UINT:
case ISD::FP_TO_SINT:
+ assert(0 && "FP_TO_S/UINT unimplemented");
abort();
case ISD::SETCC:
OpenPOWER on IntegriCloud