mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 16:45:03 +00:00
Allow strict subclasses of register classes, this way we can handle
ARM instructions with: foo GPR, rGPR which happens a lot. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112025 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7226a0eb52
commit
53452606ca
@ -112,9 +112,10 @@ struct OperandsSignature {
|
||||
if (!RC)
|
||||
return false;
|
||||
|
||||
// For now, all the operands must have the same register class.
|
||||
// For now, all the operands must have the same register class or be
|
||||
// a strict subclass of the destination.
|
||||
if (DstRC) {
|
||||
if (DstRC != RC)
|
||||
if (DstRC != RC && !DstRC->hasSubClass(RC))
|
||||
return false;
|
||||
} else
|
||||
DstRC = RC;
|
||||
|
Loading…
x
Reference in New Issue
Block a user