diff options
| author | Dan Gohman <gohman@apple.com> | 2009-06-24 00:54:57 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-06-24 00:54:57 +0000 |
| commit | 6bbcba18db6d1f4bc0f0157df41cc02627bc4aa9 (patch) | |
| tree | def5e86ca64fb718c3d4b6e52e4b6d968e2eb382 /lib/Target | |
| parent | cbc23f75cd8cd6889fd02f65b63f6c02512460bd (diff) | |
Move the special cases for constants out of getUnknown and into
createSCEV. Also, recognize UndefValue in createSCEV.
Change getIntegerSCEV's comment to avoid mentioning FP types,
and re-implement it in terms of getConstant instead of getUnknown.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74041 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
| -rw-r--r-- | lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp index 78d3224372..704d387cc8 100644 --- a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp +++ b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp @@ -644,7 +644,7 @@ 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 width = fls (v) - lsb; + int32_t width = ffs (v) - lsb; assert(MO.isImm() && "Not a valid bf_inv_mask_imm value!"); O << "#" << lsb << ", #" << width; } |
