From 1d13879044344c06d2933c268391ab8a2a2f46e7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 6 May 2009 04:33:31 +0000 Subject: [PATCH] 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 --- lib/Basic/TargetInfo.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; -- 2.40.0