Unbreak mingw build. Patch by Viktor Kutuzov.
llvm-svn: 74212
This commit is contained in:
parent
722c6e1b70
commit
7e687191fd
|
@ -637,7 +637,7 @@ void
|
|||
ARMAsmPrinter::printBitfieldInvMaskImmOperand(const MachineInstr *MI, int Op) {
|
||||
const MachineOperand &MO = MI->getOperand(Op);
|
||||
uint32_t v = ~MO.getImm();
|
||||
int32_t lsb = ffs (v) - 1;
|
||||
int32_t lsb = CountTrailingZeros_32(v);
|
||||
int32_t width = (32 - CountLeadingZeros_32 (v)) - lsb;
|
||||
assert(MO.isImm() && "Not a valid bf_inv_mask_imm value!");
|
||||
O << "#" << lsb << ", #" << width;
|
||||
|
|
Loading…
Reference in New Issue