[cfe-commits] r71064 - /cfe/trunk/lib/Basic/TargetInfo.cpp
Chris Lattner
sabre at nondot.org
Tue May 5 21:33:31 PDT 2009
Author: lattner
Date: Tue May 5 23:33:31 2009
New Revision: 71064
URL: http://llvm.org/viewvc/llvm-project?rev=71064&view=rev
Log:
Fix rdar://6860124 - invalid input constraint 'J' in asm
This recognizes all the target-independent constant constraints
that have target-specific meanings.
Modified:
cfe/trunk/lib/Basic/TargetInfo.cpp
Modified: cfe/trunk/lib/Basic/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/TargetInfo.cpp?rev=71064&r1=71063&r2=71064&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/TargetInfo.cpp (original)
+++ cfe/trunk/lib/Basic/TargetInfo.cpp Tue May 5 23:33:31 2009
@@ -264,9 +264,17 @@
// 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;
More information about the cfe-commits
mailing list