[llvm-commits] [llvm] r74046 - /llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
Nick Lewycky
nicholas at mxc.ca
Tue Jun 23 18:08:42 PDT 2009
Author: nicholas
Date: Tue Jun 23 20:08:42 2009
New Revision: 74046
URL: http://llvm.org/viewvc/llvm-project?rev=74046&view=rev
Log:
Unbreak build on Linux by removing Darwinism.
Modified:
llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp?rev=74046&r1=74045&r2=74046&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp Tue Jun 23 20:08:42 2009
@@ -644,7 +644,7 @@
const MachineOperand &MO = MI->getOperand(Op);
uint32_t v = ~MO.getImm();
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!");
O << "#" << lsb << ", #" << width;
}
More information about the llvm-commits
mailing list