Lines Matching refs:opcode

138 bool ArmMir2Lir::InexpensiveConstantInt(int32_t value, Instruction::Code opcode) {  in InexpensiveConstantInt()  argument
139 switch (opcode) { in InexpensiveConstantInt()
271 ArmOpcode opcode = kThumbBkpt; in OpReg() local
274 opcode = kThumbBlxR; in OpReg()
277 opcode = kThumbBx; in OpReg()
282 return NewLIR1(opcode, r_dest_src.GetReg()); in OpReg()
289 ArmOpcode opcode = kThumbBkpt; in OpRegRegShift() local
292 opcode = (thumb_form) ? kThumbAdcRR : kThumb2AdcRRR; in OpRegRegShift()
295 opcode = (thumb_form) ? kThumbAndRR : kThumb2AndRRR; in OpRegRegShift()
298 opcode = (thumb_form) ? kThumbBicRR : kThumb2BicRRR; in OpRegRegShift()
302 opcode = (thumb_form) ? kThumbCmnRR : kThumb2CmnRR; in OpRegRegShift()
306 opcode = kThumbCmpRR; in OpRegRegShift()
308 opcode = kThumbCmpHH; in OpRegRegShift()
310 opcode = kThumbCmpLH; in OpRegRegShift()
312 opcode = kThumbCmpHL; in OpRegRegShift()
314 opcode = kThumb2CmpRR; in OpRegRegShift()
317 opcode = (thumb_form) ? kThumbEorRR : kThumb2EorRRR; in OpRegRegShift()
322 opcode = kThumbMovRR; in OpRegRegShift()
324 opcode = kThumbMovRR_H2H; in OpRegRegShift()
326 opcode = kThumbMovRR_H2L; in OpRegRegShift()
328 opcode = kThumbMovRR_L2H; in OpRegRegShift()
332 opcode = (thumb_form) ? kThumbMul : kThumb2MulRRR; in OpRegRegShift()
335 opcode = (thumb_form) ? kThumbMvn : kThumb2MnvRR; in OpRegRegShift()
339 opcode = (thumb_form) ? kThumbNeg : kThumb2NegRR; in OpRegRegShift()
342 opcode = (thumb_form) ? kThumbOrr : kThumb2OrrRRR; in OpRegRegShift()
345 opcode = (thumb_form) ? kThumbSbc : kThumb2SbcRRR; in OpRegRegShift()
348 opcode = (thumb_form) ? kThumbTst : kThumb2TstRR; in OpRegRegShift()
352 opcode = (thumb_form) ? kThumbLslRR : kThumb2LslRRR; in OpRegRegShift()
356 opcode = (thumb_form) ? kThumbLsrRR : kThumb2LsrRRR; in OpRegRegShift()
360 opcode = (thumb_form) ? kThumbAsrRR : kThumb2AsrRRR; in OpRegRegShift()
364 opcode = (thumb_form) ? kThumbRorRR : kThumb2RorRRR; in OpRegRegShift()
367 opcode = (thumb_form) ? kThumbAddRRR : kThumb2AddRRR; in OpRegRegShift()
370 opcode = (thumb_form) ? kThumbSubRRR : kThumb2SubRRR; in OpRegRegShift()
378 opcode = kThumbRev; in OpRegRegShift()
386 opcode = kThumbRevsh; in OpRegRegShift()
401 DCHECK(!IsPseudoLirOp(opcode)); in OpRegRegShift()
402 if (EncodingMap[opcode].flags & IS_BINARY_OP) { in OpRegRegShift()
403 return NewLIR2(opcode, r_dest_src1.GetReg(), r_src2.GetReg()); in OpRegRegShift()
404 } else if (EncodingMap[opcode].flags & IS_TERTIARY_OP) { in OpRegRegShift()
405 if (EncodingMap[opcode].field_loc[2].kind == kFmtShift) { in OpRegRegShift()
406 return NewLIR3(opcode, r_dest_src1.GetReg(), r_src2.GetReg(), shift); in OpRegRegShift()
408 return NewLIR3(opcode, r_dest_src1.GetReg(), r_dest_src1.GetReg(), r_src2.GetReg()); in OpRegRegShift()
410 } else if (EncodingMap[opcode].flags & IS_QUAD_OP) { in OpRegRegShift()
411 return NewLIR4(opcode, r_dest_src1.GetReg(), r_dest_src1.GetReg(), r_src2.GetReg(), shift); in OpRegRegShift()
442 ArmOpcode opcode = kThumbBkpt; in OpRegRegRegShift() local
446 opcode = (thumb_form) ? kThumbAddRRR : kThumb2AddRRR; in OpRegRegRegShift()
449 opcode = (thumb_form) ? kThumbSubRRR : kThumb2SubRRR; in OpRegRegRegShift()
452 opcode = kThumb2RsubRRR; in OpRegRegRegShift()
455 opcode = kThumb2AdcRRR; in OpRegRegRegShift()
458 opcode = kThumb2AndRRR; in OpRegRegRegShift()
461 opcode = kThumb2BicRRR; in OpRegRegRegShift()
464 opcode = kThumb2EorRRR; in OpRegRegRegShift()
468 opcode = kThumb2MulRRR; in OpRegRegRegShift()
472 opcode = kThumb2SdivRRR; in OpRegRegRegShift()
475 opcode = kThumb2OrrRRR; in OpRegRegRegShift()
478 opcode = kThumb2SbcRRR; in OpRegRegRegShift()
482 opcode = kThumb2LslRRR; in OpRegRegRegShift()
486 opcode = kThumb2LsrRRR; in OpRegRegRegShift()
490 opcode = kThumb2AsrRRR; in OpRegRegRegShift()
494 opcode = kThumb2RorRRR; in OpRegRegRegShift()
500 DCHECK(!IsPseudoLirOp(opcode)); in OpRegRegRegShift()
501 if (EncodingMap[opcode].flags & IS_QUAD_OP) { in OpRegRegRegShift()
502 return NewLIR4(opcode, r_dest.GetReg(), r_src1.GetReg(), r_src2.GetReg(), shift); in OpRegRegRegShift()
504 DCHECK(EncodingMap[opcode].flags & IS_TERTIARY_OP); in OpRegRegRegShift()
505 return NewLIR3(opcode, r_dest.GetReg(), r_src1.GetReg(), r_src2.GetReg()); in OpRegRegRegShift()
516 ArmOpcode opcode = kThumbBkpt; in OpRegRegImm() local
550 opcode = (neg) ? kThumbSubRRI3 : kThumbAddRRI3; in OpRegRegImm()
552 opcode = (neg) ? kThumbAddRRI3 : kThumbSubRRI3; in OpRegRegImm()
553 return NewLIR3(opcode, r_dest.GetReg(), r_src1.GetReg(), abs_value); in OpRegRegImm()
565 opcode = (neg) ? kThumb2SubRRI12 : kThumb2AddRRI12; in OpRegRegImm()
567 opcode = (neg) ? kThumb2AddRRI12 : kThumb2SubRRI12; in OpRegRegImm()
568 return NewLIR3(opcode, r_dest.GetReg(), r_src1.GetReg(), abs_value); in OpRegRegImm()
571 opcode = kThumb2SubRRI8M; in OpRegRegImm()
574 opcode = kThumb2AddRRI8M; in OpRegRegImm()
579 opcode = kThumb2RsubRRI8M; in OpRegRegImm()
583 opcode = kThumb2AdcRRI8M; in OpRegRegImm()
587 opcode = kThumb2SbcRRI8M; in OpRegRegImm()
591 opcode = kThumb2OrrRRI8M; in OpRegRegImm()
596 opcode = kThumb2OrnRRI8M; in OpRegRegImm()
607 opcode = kThumb2AndRRI8M; in OpRegRegImm()
611 opcode = kThumb2EorRRI8M; in OpRegRegImm()
641 return NewLIR3(opcode, r_dest.GetReg(), r_src1.GetReg(), mod_imm); in OpRegRegImm()
660 ArmOpcode opcode = kThumbBkpt; in OpRegImm() local
667 opcode = (neg) ? kThumbSubRI8 : kThumbAddRI8; in OpRegImm()
675 opcode = (neg) ? kThumbAddRI8 : kThumbSubRI8; in OpRegImm()
680 opcode = kThumbCmpRI8; in OpRegImm()
691 return NewLIR2(opcode, r_dest_src1.GetReg(), abs_value); in OpRegImm()
752 ArmOpcode opcode = kThumbBkpt; in LoadBaseIndexed() local
759 opcode = kThumb2Vldrs; in LoadBaseIndexed()
764 opcode = kThumb2Vldrd; in LoadBaseIndexed()
783 load = NewLIR3(opcode, r_dest.GetReg(), reg_ptr.GetReg(), 0); in LoadBaseIndexed()
789 opcode = (thumb_form) ? kThumbLdrRRR : kThumb2LdrRRR; in LoadBaseIndexed()
792 opcode = (thumb_form) ? kThumbLdrhRRR : kThumb2LdrhRRR; in LoadBaseIndexed()
795 opcode = (thumb_form) ? kThumbLdrshRRR : kThumb2LdrshRRR; in LoadBaseIndexed()
798 opcode = (thumb_form) ? kThumbLdrbRRR : kThumb2LdrbRRR; in LoadBaseIndexed()
801 opcode = (thumb_form) ? kThumbLdrsbRRR : kThumb2LdrsbRRR; in LoadBaseIndexed()
807 load = NewLIR3(opcode, r_dest.GetReg(), r_base.GetReg(), r_index.GetReg()); in LoadBaseIndexed()
809 load = NewLIR4(opcode, r_dest.GetReg(), r_base.GetReg(), r_index.GetReg(), scale); in LoadBaseIndexed()
818 ArmOpcode opcode = kThumbBkpt; in StoreBaseIndexed() local
825 opcode = kThumb2Vstrs; in StoreBaseIndexed()
831 opcode = kThumb2Vstrd; in StoreBaseIndexed()
850 store = NewLIR3(opcode, r_src.GetReg(), reg_ptr.GetReg(), 0); in StoreBaseIndexed()
856 opcode = (thumb_form) ? kThumbStrRRR : kThumb2StrRRR; in StoreBaseIndexed()
861 opcode = (thumb_form) ? kThumbStrhRRR : kThumb2StrhRRR; in StoreBaseIndexed()
866 opcode = (thumb_form) ? kThumbStrbRRR : kThumb2StrbRRR; in StoreBaseIndexed()
872 store = NewLIR3(opcode, r_src.GetReg(), r_base.GetReg(), r_index.GetReg()); in StoreBaseIndexed()
874 store = NewLIR4(opcode, r_src.GetReg(), r_base.GetReg(), r_index.GetReg(), scale); in StoreBaseIndexed()
880 LIR* ArmMir2Lir::LoadStoreUsingInsnWithOffsetImm8Shl2(ArmOpcode opcode, RegStorage r_base, in LoadStoreUsingInsnWithOffsetImm8Shl2() argument
894 lir = NewLIR3(opcode, r_src_dest.GetReg(), r_ptr.GetReg(), encoded_disp); in LoadStoreUsingInsnWithOffsetImm8Shl2()
896 lir = NewLIR4(opcode, r_src_dest.GetLowReg(), r_src_dest.GetHighReg(), r_ptr.GetReg(), in LoadStoreUsingInsnWithOffsetImm8Shl2()
1227 int opcode; in OpFpRegCopy() local
1230 opcode = kThumb2Vmovd; in OpFpRegCopy()
1233 opcode = r_src.IsSingle() ? kThumb2Vmovs : kThumb2Fmsr; in OpFpRegCopy()
1236 opcode = kThumb2Fmrs; in OpFpRegCopy()
1239 LIR* res = RawLIR(current_dalvik_offset_, opcode, r_dest.GetReg(), r_src.GetReg()); in OpFpRegCopy()
1258 uint64_t check_flags = GetTargetInstFlags(lir->opcode); in GetInstructionOffset()