diff options
author | Anders Carlsson <andersca@mac.com> | 2008-02-18 17:00:25 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-02-18 17:00:25 +0000 |
commit | b41edf90f4a88d05a29f1bec7a79e3cd3979c317 (patch) | |
tree | 1f2794c219e0a9b1fed626333a4ff73ea4fc6708 /Basic | |
parent | a0992b63c9c938699da526dd6032ad30b6011656 (diff) |
Add more supported constraints.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47270 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Basic')
-rw-r--r-- | Basic/TargetInfo.cpp | 1 | ||||
-rw-r--r-- | Basic/Targets.cpp | 2 |
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; } |