]> granicus.if.org Git - clang/commitdiff
Fix rdar://6860124 - invalid input constraint 'J' in asm
authorChris Lattner <sabre@nondot.org>
Wed, 6 May 2009 04:33:31 +0000 (04:33 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 6 May 2009 04:33:31 +0000 (04:33 +0000)
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

index d1e351077e2d1c8e641ab0eeb77bbf8a5b0add21..1e8ca2bd56c466f913458917289ceb6253a8d49a 100644 (file)
@@ -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;