Home
last modified time | relevance | path

Searched refs:MulAmt (Results 1 – 4 of 4) sorted by relevance

/external/llvm/lib/Target/Lanai/
DLanaiISelLowering.cpp881 int64_t MulAmt = C->getSExtValue(); in LowerMUL() local
895 int64_t E = std::abs(MulAmt); in LowerMUL()
896 int S = (MulAmt < 0 ? -1 : 1); in LowerMUL()
919 if (std::abs(MulAmt) % 2 == 1) in LowerMUL()
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMISelLowering.cpp6635 uint64_t MulAmt = C->getZExtValue(); in PerformMULCombine() local
6636 unsigned ShiftAmt = CountTrailingZeros_64(MulAmt); in PerformMULCombine()
6642 MulAmt >>= ShiftAmt; in PerformMULCombine()
6643 if (isPowerOf2_32(MulAmt - 1)) { in PerformMULCombine()
6647 V, DAG.getConstant(Log2_32(MulAmt-1), in PerformMULCombine()
6649 } else if (isPowerOf2_32(MulAmt + 1)) { in PerformMULCombine()
6653 V, DAG.getConstant(Log2_32(MulAmt+1), in PerformMULCombine()
/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86ISelLowering.cpp13017 uint64_t MulAmt = C->getZExtValue(); in PerformMulCombine() local
13018 if (isPowerOf2_64(MulAmt) || MulAmt == 3 || MulAmt == 5 || MulAmt == 9) in PerformMulCombine()
13023 if ((MulAmt % 9) == 0) { in PerformMulCombine()
13025 MulAmt2 = MulAmt / 9; in PerformMulCombine()
13026 } else if ((MulAmt % 5) == 0) { in PerformMulCombine()
13028 MulAmt2 = MulAmt / 5; in PerformMulCombine()
13029 } else if ((MulAmt % 3) == 0) { in PerformMulCombine()
13031 MulAmt2 = MulAmt / 3; in PerformMulCombine()
/external/llvm/lib/Target/ARM/
DARMISelLowering.cpp9158 int64_t MulAmt = C->getSExtValue(); in PerformMULCombine() local
9159 unsigned ShiftAmt = countTrailingZeros<uint64_t>(MulAmt); in PerformMULCombine()
9166 MulAmt >>= ShiftAmt; in PerformMULCombine()
9168 if (MulAmt >= 0) { in PerformMULCombine()
9169 if (isPowerOf2_32(MulAmt - 1)) { in PerformMULCombine()
9175 DAG.getConstant(Log2_32(MulAmt - 1), DL, in PerformMULCombine()
9177 } else if (isPowerOf2_32(MulAmt + 1)) { in PerformMULCombine()
9182 DAG.getConstant(Log2_32(MulAmt + 1), DL, in PerformMULCombine()
9188 uint64_t MulAmtAbs = -MulAmt; in PerformMULCombine()