From 843e44503cffbc821c963bb9ad03e3c602d305a6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 25 Mar 2007 02:18:14 +0000 Subject: Implement CodeGen/X86/2007-03-24-InlineAsmMultiRegConstraint.ll llvm-svn: 35324 --- llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'llvm/lib') 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; } -- cgit v1.2.3