[cfe-commits] r47270 - in /cfe/trunk/Basic: TargetInfo.cpp Targets.cpp
Anders Carlsson
andersca at mac.com
Mon Feb 18 09:00:25 PST 2008
Author: andersca
Date: Mon Feb 18 11:00:25 2008
New Revision: 47270
URL: http://llvm.org/viewvc/llvm-project?rev=47270&view=rev
Log:
Add more supported constraints.
Modified:
cfe/trunk/Basic/TargetInfo.cpp
cfe/trunk/Basic/Targets.cpp
Modified: cfe/trunk/Basic/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Basic/TargetInfo.cpp?rev=47270&r1=47269&r2=47270&view=diff
==============================================================================
--- cfe/trunk/Basic/TargetInfo.cpp (original)
+++ cfe/trunk/Basic/TargetInfo.cpp Mon Feb 18 11:00:25 2008
@@ -435,6 +435,7 @@
// FIXME: Fail if % is used with the last operand.
break;
case 'i': // immediate integer.
+ case 'I':
break;
case 'r': // general register.
info = (ConstraintInfo)(info|CI_AllowsRegister);
Modified: cfe/trunk/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Basic/Targets.cpp?rev=47270&r1=47269&r2=47270&view=diff
==============================================================================
--- cfe/trunk/Basic/Targets.cpp (original)
+++ cfe/trunk/Basic/Targets.cpp Mon Feb 18 11:00:25 2008
@@ -461,6 +461,8 @@
case 't': // top of floating point stack.
case 'u': // second from top of floating point stack.
case 'q': // a, b, c, d registers or any integer register in 64-bit.
+ case 'Z': // 32-bit integer constant for used with zero-extending x86_64
+ // instructions.
info = (TargetInfo::ConstraintInfo)(info|TargetInfo::CI_AllowsRegister);
return true;
}
More information about the cfe-commits
mailing list