aboutsummaryrefslogtreecommitdiff
path: root/lib/Basic/TargetInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-05-06 04:33:31 +0000
committerChris Lattner <sabre@nondot.org>2009-05-06 04:33:31 +0000
commit1d13879044344c06d2933c268391ab8a2a2f46e7 (patch)
treeb82f294e62d7b7b420c3249099f45a155ed6538d /lib/Basic/TargetInfo.cpp
parentaa338bc43141f9e344b075d552c6f1a993b6b640 (diff)
Fix rdar://6860124 - invalid input constraint 'J' in asm
This recognizes all the target-independent constant constraints that have target-specific meanings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71064 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/TargetInfo.cpp')
-rw-r--r--lib/Basic/TargetInfo.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Basic/TargetInfo.cpp b/lib/Basic/TargetInfo.cpp
index d1e351077e..1e8ca2bd56 100644
--- a/lib/Basic/TargetInfo.cpp
+++ b/lib/Basic/TargetInfo.cpp
@@ -264,9 +264,17 @@ bool TargetInfo::validateInputConstraint(ConstraintInfo *OutputConstraints,
// FIXME: Fail if % is used with the last operand.
break;
case 'i': // immediate integer.
- case 'I':
case 'n': // immediate integer with a known value.
break;
+ case 'I': // Various constant constraints with target-specific meanings.
+ case 'J':
+ case 'K':
+ case 'L':
+ case 'M':
+ case 'N':
+ case 'O':
+ case 'P':
+ break;
case 'r': // general register.
Info.setAllowsRegister();
break;