aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Basic/TargetInfo.cpp1
-rw-r--r--Basic/Targets.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/Basic/TargetInfo.cpp b/Basic/TargetInfo.cpp
index f0aecb1e08..6b600a43a9 100644
--- a/Basic/TargetInfo.cpp
+++ b/Basic/TargetInfo.cpp
@@ -435,6 +435,7 @@ bool TargetInfo::validateInputConstraint(const char *Name,
// 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);
diff --git a/Basic/Targets.cpp b/Basic/Targets.cpp
index afe6e74f66..fec8499866 100644
--- a/Basic/Targets.cpp
+++ b/Basic/Targets.cpp
@@ -461,6 +461,8 @@ namespace X86 {
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;
}