parent
6e50103acd
commit
af66980d8a
|
@ -844,13 +844,13 @@ void MCAsmStreamer::AddEncodingComment(const MCInst &Inst) {
|
||||||
OS << "0b";
|
OS << "0b";
|
||||||
for (unsigned j = 8; j--;) {
|
for (unsigned j = 8; j--;) {
|
||||||
unsigned Bit = (Code[i] >> j) & 1;
|
unsigned Bit = (Code[i] >> j) & 1;
|
||||||
|
|
||||||
unsigned FixupBit;
|
unsigned FixupBit;
|
||||||
if (getContext().getTargetAsmInfo().isLittleEndian())
|
if (getContext().getTargetAsmInfo().isLittleEndian())
|
||||||
FixupBit = i * 8 + j;
|
FixupBit = i * 8 + j;
|
||||||
else
|
else
|
||||||
FixupBit = i * 8 + (7-j);
|
FixupBit = i * 8 + (7-j);
|
||||||
|
|
||||||
if (uint8_t MapEntry = FixupMap[FixupBit]) {
|
if (uint8_t MapEntry = FixupMap[FixupBit]) {
|
||||||
assert(Bit == 0 && "Encoder wrote into fixed up bit!");
|
assert(Bit == 0 && "Encoder wrote into fixed up bit!");
|
||||||
OS << char('A' + MapEntry - 1);
|
OS << char('A' + MapEntry - 1);
|
||||||
|
|
Loading…
Reference in New Issue