mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Add information preventing several register class constraints from working.
This implements PR828 and CodeGen/X86/2006-07-12-InlineAsmQConstraint.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29118 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
08c3f7b7c2
commit
6d3465793f
@ -4140,7 +4140,15 @@ SDOperand X86TargetLowering::PerformDAGCombine(SDNode *N,
|
|||||||
X86TargetLowering::ConstraintType
|
X86TargetLowering::ConstraintType
|
||||||
X86TargetLowering::getConstraintType(char ConstraintLetter) const {
|
X86TargetLowering::getConstraintType(char ConstraintLetter) const {
|
||||||
switch (ConstraintLetter) {
|
switch (ConstraintLetter) {
|
||||||
case 'A': return C_RegisterClass;
|
case 'A':
|
||||||
|
case 'r':
|
||||||
|
case 'R':
|
||||||
|
case 'l':
|
||||||
|
case 'q':
|
||||||
|
case 'Q':
|
||||||
|
case 'x':
|
||||||
|
case 'Y':
|
||||||
|
return C_RegisterClass;
|
||||||
default: return TargetLowering::getConstraintType(ConstraintLetter);
|
default: return TargetLowering::getConstraintType(ConstraintLetter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user