mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
Represent NEON load/store alignments in bytes, not bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107701 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -602,8 +602,12 @@ void ARMAsmPrinter::printAddrMode6Operand(const MachineInstr *MI, int Op,
|
||||
|
||||
O << "[" << getRegisterName(MO1.getReg());
|
||||
if (MO2.getImm()) {
|
||||
unsigned Align = MO2.getImm();
|
||||
assert((Align == 8 || Align == 16 || Align == 32) &&
|
||||
"unexpected NEON load/store alignment");
|
||||
Align <<= 3;
|
||||
// FIXME: Both darwin as and GNU as violate ARM docs here.
|
||||
O << ", :" << MO2.getImm();
|
||||
O << ", :" << Align;
|
||||
}
|
||||
O << "]";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user