aboutsummaryrefslogtreecommitdiff
path: root/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
commit065421f99fc155c3910a77c3a47de99f3f6af4d0 (patch)
tree661a969c313a99530600e66cd201798cefed7264 /lib/CodeGen/SelectionDAG/TargetLowering.cpp
parente4e2e18f478ef5e30c6a638c90ca25efa3d332f4 (diff)
Implement CodeGen/X86/2007-03-24-InlineAsmMultiRegConstraint.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/TargetLowering.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 7436c1747a..7433a79f9f 100644
--- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/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;
}