mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-08 08:54:58 +00:00
Unbreak build on Linux by removing Darwinism.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74046 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
62849c065e
commit
b825aaa028
@ -644,7 +644,7 @@ ARMAsmPrinter::printBitfieldInvMaskImmOperand(const MachineInstr *MI, int Op) {
|
|||||||
const MachineOperand &MO = MI->getOperand(Op);
|
const MachineOperand &MO = MI->getOperand(Op);
|
||||||
uint32_t v = ~MO.getImm();
|
uint32_t v = ~MO.getImm();
|
||||||
int32_t lsb = ffs (v) - 1;
|
int32_t lsb = ffs (v) - 1;
|
||||||
int32_t width = fls (v) - lsb;
|
int32_t width = (32 - CountLeadingZeros_32 (v)) - lsb;
|
||||||
assert(MO.isImm() && "Not a valid bf_inv_mask_imm value!");
|
assert(MO.isImm() && "Not a valid bf_inv_mask_imm value!");
|
||||||
O << "#" << lsb << ", #" << width;
|
O << "#" << lsb << ", #" << width;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user