summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-11-11 16:47:30 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-11-11 16:47:30 +0000
commit01aa56397d103e28aa577f3994f53f2f6aa82fc1 (patch)
treea1441fff56c55f2b86f820d57e67f95ddbf16462 /llvm/lib/Target/Alpha/AlphaISelPattern.cpp
parentbd0127e4675e65de7154fdc6987ea0534db1e1cf (diff)
downloadbcm5719-llvm-01aa56397d103e28aa577f3994f53f2f6aa82fc1.tar.gz
bcm5719-llvm-01aa56397d103e28aa577f3994f53f2f6aa82fc1.zip
continued readcyclecounter support
llvm-svn: 24300
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r--llvm/lib/Target/Alpha/AlphaISelPattern.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
index eb13486c7f2..791fcedccde 100644
--- a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
@@ -549,6 +549,11 @@ unsigned AlphaISel::SelectExpr(SDOperand N) {
Node->dump();
assert(0 && "Node not handled!\n");
+ case ISD::READCYCLECOUNTER:
+ Select(N.getOperand(0)); //Select chain
+ BuildMI(BB, Alpha::RPCC, 1, Result).addReg(Alpha::R31);
+ return Result;
+
case ISD::CTPOP:
case ISD::CTTZ:
case ISD::CTLZ:
OpenPOWER on IntegriCloud