Lines Matching refs:imm
749 int common_alu_int_lit(ALU_Opcode opc, u2 vA, u2 vB, s2 imm) { //except div and rem in common_alu_int_lit() argument
751 alu_binary_imm_reg(OpndSize_32, opc, imm, 1, false); in common_alu_int_lit()
756 int common_shift_int_lit(ALU_Opcode opc, u2 vA, u2 vB, s2 imm) { in common_shift_int_lit() argument
757 return common_alu_int_lit(opc, vA, vB, imm); in common_shift_int_lit()
772 int alu_rsub_int(ALU_Opcode opc, u2 vA, s2 imm, u2 vB) { in alu_rsub_int() argument
773 move_imm_to_reg(OpndSize_32, imm, 2, false); in alu_rsub_int()
969 int isPowerOfTwo(int imm) { in isPowerOfTwo() argument
972 if(imm == (1 << i)) return i; in isPowerOfTwo()
978 int div_lit_strength_reduction(u2 vA, u2 vB, s2 imm) { in div_lit_strength_reduction() argument
981 int power = isPowerOfTwo(imm); in div_lit_strength_reduction()
1019 int common_div_rem_int_lit(bool isRem, u2 vA, u2 vB, s2 imm) { in common_div_rem_int_lit() argument
1021 int retCode = div_lit_strength_reduction(vA, vB, imm); in common_div_rem_int_lit()
1024 if(imm == 0) { in common_div_rem_int_lit()
1038 if(imm == -1) { in common_div_rem_int_lit()
1043 move_imm_to_reg(OpndSize_32, imm, 2, false); in common_div_rem_int_lit()
1052 if(imm == -1) { in common_div_rem_int_lit()