]> granicus.if.org Git - clang/commitdiff
Add more supported constraints.
authorAnders Carlsson <andersca@mac.com>
Mon, 18 Feb 2008 17:00:25 +0000 (17:00 +0000)
committerAnders Carlsson <andersca@mac.com>
Mon, 18 Feb 2008 17:00:25 +0000 (17:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47270 91177308-0d34-0410-b5e6-96231b3b80d8

Basic/TargetInfo.cpp
Basic/Targets.cpp

index f0aecb1e08a821d63b66d84f8ea8831d1513da5d..6b600a43a9b14027c8c532d80810c9adea09c8ee 100644 (file)
@@ -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);
index afe6e74f6663b095ae048b410fdcdd850d195f4a..fec8499866124d85ca85fb9b159bc2092524f451 100644 (file)
@@ -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;
     }