Lines Matching refs:lit
2227 // Returns true if it added instructions to 'cUnit' to divide 'rlSrc' by 'lit'
2230 RegLocation rlSrc, RegLocation rlDest, int lit)
2232 if (lit < 2 || !isPowerOfTwo(lit)) {
2235 int k = lowestSetBit(lit);
2245 if (lit == 2) {
2258 loadConstant(cUnit, cReg, lit - 1);
2261 if (lit == 2) {
2278 // Returns true if it added instructions to 'cUnit' to multiply 'rlSrc' by 'lit'
2281 RegLocation rlSrc, RegLocation rlDest, int lit)
2287 if (lit < 2) {
2290 } else if (isPowerOfTwo(lit)) {
2292 } else if (isPopCountLE2(lit)) {
2294 } else if (isPowerOfTwo(lit + 1)) {
2304 lowestSetBit(lit));
2307 int firstBit = lowestSetBit(lit);
2308 int secondBit = lowestSetBit(lit ^ (1 << firstBit));
2309 genMultiplyByTwoBitMultiplier(cUnit, rlSrc, rlResult, lit,
2314 // TODO: rsb dst, src, src lsl#lowestSetBit(lit + 1)
2316 opRegRegImm(cUnit, kOpLsl, tReg, rlSrc.lowReg, lowestSetBit(lit + 1));
2329 int lit = mir->dalvikInsn.vC;
2340 loadConstant(cUnit, tReg, lit);
2355 if (handleEasyMultiply(cUnit, rlSrc, rlDest, lit)) {
2374 lit &= 31;
2379 lit &= 31;
2384 lit &= 31;
2393 if (lit == 0) {
2398 if (handleEasyDivide(cUnit, dalvikOpcode, rlSrc, rlDest, lit)) {
2416 newLIR3(cUnit, kMipsAddiu, tReg, r_ZERO, lit);
2431 if (shiftOp && (lit == 0)) {
2434 opRegRegImm(cUnit, op, rlResult.lowReg, rlSrc.lowReg, lit);