summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Alpha
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-11-11 23:02:55 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-11-11 23:02:55 +0000
commitfab772045e5d93b3b6e2885010b0871ba14f9bb3 (patch)
tree7dd4e40e0c01e2f1e71ed34d8f9240d9769debfc /llvm/lib/Target/Alpha
parentde1b5d6baa0609913c5c74fdabc6ed8fefcd95b1 (diff)
downloadbcm5719-llvm-fab772045e5d93b3b6e2885010b0871ba14f9bb3.tar.gz
bcm5719-llvm-fab772045e5d93b3b6e2885010b0871ba14f9bb3.zip
generate chain result
llvm-svn: 24307
Diffstat (limited to 'llvm/lib/Target/Alpha')
-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 3218f03d639..ec3479d15f5 100644
--- a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
@@ -551,6 +551,11 @@ unsigned AlphaISel::SelectExpr(SDOperand N) {
case ISD::READCYCLECOUNTER:
Select(N.getOperand(0)); //Select chain
+ if (Result != notIn)
+ ExprMap[N.getValue(1)] = notIn; // Generate the token
+ else
+ Result = ExprMap[N.getValue(0)] = MakeReg(N.getValue(0).getValueType());
+
BuildMI(BB, Alpha::RPCC, 1, Result).addReg(Alpha::R31);
return Result;
OpenPOWER on IntegriCloud