summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-03-25 02:18:14 +0000
committerChris Lattner <sabre@nondot.org>2007-03-25 02:18:14 +0000
commit843e44503cffbc821c963bb9ad03e3c602d305a6 (patch)
tree16d6e7f96e0df711ee1c3c8134d62bf660f68c63 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
parentf4579c7872568b136f06f10591328c1ed0546aeb (diff)
downloadbcm5719-llvm-843e44503cffbc821c963bb9ad03e3c602d305a6.tar.gz
bcm5719-llvm-843e44503cffbc821c963bb9ad03e3c602d305a6.zip
Implement CodeGen/X86/2007-03-24-InlineAsmMultiRegConstraint.ll
llvm-svn: 35324
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 7436c1747ad..7433a79f9f4 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -1852,7 +1852,10 @@ TargetLowering::getConstraintType(const std::string &Constraint) const {
return C_Other;
}
}
- // TODO: Handle registers.
+
+ if (Constraint.size() > 1 && Constraint[0] == '{' &&
+ Constraint[Constraint.size()-1] == '}')
+ return C_Register;
return C_Unknown;
}
OpenPOWER on IntegriCloud