mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Correctly handle scattered operands where the bits of the operand are contiguous, but out of order.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136534 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
73e7dced38
commit
eb809f562e
@ -1295,6 +1295,11 @@ static bool populateInstruction(const CodeGenInstruction &CGI,
|
||||
Base = bi;
|
||||
Width = 1;
|
||||
Offset = BI->getBitNum();
|
||||
} else if (BI->getBitNum() != Offset + Width) {
|
||||
OpInfo.addField(Base, Width, Offset);
|
||||
Base = bi;
|
||||
Width = 1;
|
||||
Offset = BI->getBitNum();
|
||||
} else {
|
||||
++Width;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user