forked from OSchip/llvm-project
Handle the 'X' constraint. Fixes <rdar://problem/6504897>.
llvm-svn: 62446
This commit is contained in:
parent
137d6492a8
commit
e70cde134e
|
@ -178,6 +178,7 @@ bool TargetInfo::validateOutputConstraint(const char *Name,
|
|||
info = (ConstraintInfo)(info|CI_AllowsMemory);
|
||||
break;
|
||||
case 'g': // general register, memory operand or immediate integer.
|
||||
case 'X': // any operand.
|
||||
info = (ConstraintInfo)(info|CI_AllowsMemory|CI_AllowsRegister);
|
||||
break;
|
||||
}
|
||||
|
@ -263,6 +264,7 @@ bool TargetInfo::validateInputConstraint(const char *Name,
|
|||
info = (ConstraintInfo)(info|CI_AllowsMemory);
|
||||
break;
|
||||
case 'g': // general register, memory operand or immediate integer.
|
||||
case 'X': // any operand.
|
||||
info = (ConstraintInfo)(info|CI_AllowsMemory|CI_AllowsRegister);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue