commit | 065421f99fc155c3910a77c3a47de99f3f6af4d0 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sun Mar 25 02:18:14 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sun Mar 25 02:18:14 2007 +0000 |
tree | 661a969c313a99530600e66cd201798cefed7264 | |
parent | e4e2e18f478ef5e30c6a638c90ca25efa3d332f4 [diff] [blame] |
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
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 7436c17..7433a79 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -1852,7 +1852,10 @@ return C_Other; } } - // TODO: Handle registers. + + if (Constraint.size() > 1 && Constraint[0] == '{' && + Constraint[Constraint.size()-1] == '}') + return C_Register; return C_Unknown; }