• Home
  • Raw
  • Download

Lines Matching refs:mode64

280       Bool         mode64;  member
317 vassert(!env->mode64); in lookupIRTempQuad()
331 ppPPCInstr(instr, env->mode64); in addInstr()
338 HReg reg = mkHReg(env->vreg_ctr, HRcGPR(env->mode64), in newVRegI()
484 HReg sp = StackFramePtr(env->mode64); in add_to_sp()
492 HReg sp = StackFramePtr(env->mode64); in sub_from_sp()
508 addInstr(env, mk_iMOVds_RR(r, StackFramePtr(env->mode64))); in get_sp_aligned16()
514 PPCInstr_LI(align16, 0xFFFFFFFFFFFFFFF0ULL, env->mode64)); in get_sp_aligned16()
528 vassert(!env->mode64); in mk_LoadRR32toFPR()
533 am_addr0 = PPCAMode_IR( 0, StackFramePtr(env->mode64) ); in mk_LoadRR32toFPR()
534 am_addr1 = PPCAMode_IR( 4, StackFramePtr(env->mode64) ); in mk_LoadRR32toFPR()
537 addInstr(env, PPCInstr_Store( 4, am_addr0, r_srcHi, env->mode64 )); in mk_LoadRR32toFPR()
538 addInstr(env, PPCInstr_Store( 4, am_addr1, r_srcLo, env->mode64 )); in mk_LoadRR32toFPR()
553 vassert(env->mode64); in mk_LoadR64toFPR()
557 am_addr0 = PPCAMode_IR( 0, StackFramePtr(env->mode64) ); in mk_LoadR64toFPR()
560 addInstr(env, PPCInstr_Store( 8, am_addr0, r_src, env->mode64 )); in mk_LoadR64toFPR()
635 env->mode64 ? False : True/*F:64-bit, T:32-bit shift*/, in genGuestArrayOffset()
643 PPCAMode_RR( GuestStatePtr(env->mode64), rtmp ); in genGuestArrayOffset()
684 Bool mode64 = env->mode64; in doHelperCall() local
689 = (!mode64) && env->vbi->host_ppc32_regalign_int64_args; in doHelperCall()
750 argregs[0] = hregPPC_GPR3(mode64); in doHelperCall()
751 argregs[1] = hregPPC_GPR4(mode64); in doHelperCall()
752 argregs[2] = hregPPC_GPR5(mode64); in doHelperCall()
753 argregs[3] = hregPPC_GPR6(mode64); in doHelperCall()
754 argregs[4] = hregPPC_GPR7(mode64); in doHelperCall()
755 argregs[5] = hregPPC_GPR8(mode64); in doHelperCall()
756 argregs[6] = hregPPC_GPR9(mode64); in doHelperCall()
757 argregs[7] = hregPPC_GPR10(mode64); in doHelperCall()
800 GuestStatePtr(mode64) )); in doHelperCall()
808 if (!mode64) { in doHelperCall()
847 GuestStatePtr(mode64) )); in doHelperCall()
855 if (!mode64) { in doHelperCall()
901 target = mode64 ? Ptr_to_ULong(cee->addr) : in doHelperCall()
954 vassert(hregClass(r_rmIR) == HRcGPR(env->mode64)); in roundModeIRtoPPC()
1032 if (env->mode64) { in _set_FPU_rounding_mode()
1045 addInstr( env, PPCInstr_LI( r_zero, 0, env->mode64 ) ); in _set_FPU_rounding_mode()
1143 addInstr(env, PPCInstr_LI(r_src, (Long)simm32, env->mode64)); in mk_AvDuplicateRI()
1164 addInstr(env, PPCInstr_Store( 4, am_off12, r_src, env->mode64 )); in mk_AvDuplicateRI()
1230 vassert(hregClass(r) == HRcGPR(env->mode64)); in iselWordExpr_R()
1238 Bool mode64 = env->mode64; in iselWordExpr_R_wrk() local
1244 ty == Ity_I32 || ((ty == Ity_I64) && mode64)); in iselWordExpr_R_wrk()
1261 r_dst, am_addr, mode64 )); in iselWordExpr_R_wrk()
1328 if (!mode64) in iselWordExpr_R_wrk()
1355 vassert(mode64); in iselWordExpr_R_wrk()
1392 vassert(mode64); in iselWordExpr_R_wrk()
1420 if (mode64 in iselWordExpr_R_wrk()
1463 vassert(mode64); in iselWordExpr_R_wrk()
1489 vassert(mode64); in iselWordExpr_R_wrk()
1493 addInstr(env, PPCInstr_LI(msk, 0xFFFFFFFF, mode64)); in iselWordExpr_R_wrk()
1582 HReg r1 = StackFramePtr(env->mode64); in iselWordExpr_R_wrk()
1598 addInstr(env, PPCInstr_Load(4, idst, zero_r1, mode64)); in iselWordExpr_R_wrk()
1601 if (mode64) in iselWordExpr_R_wrk()
1612 if (mode64) { in iselWordExpr_R_wrk()
1613 HReg r1 = StackFramePtr(env->mode64); in iselWordExpr_R_wrk()
1666 addInstr(env, PPCInstr_Load(2,r_dst,amode, mode64)); in iselWordExpr_R_wrk()
1688 vassert(mode64); in iselWordExpr_R_wrk()
1716 vassert(mode64); in iselWordExpr_R_wrk()
1728 vassert(mode64); in iselWordExpr_R_wrk()
1740 if (op_unop == Iop_Not64) vassert(mode64); in iselWordExpr_R_wrk()
1747 if (!mode64) { in iselWordExpr_R_wrk()
1761 if (!mode64) { in iselWordExpr_R_wrk()
1771 if (mode64) { /* This is a no-op. */ in iselWordExpr_R_wrk()
1787 if (mode64) { in iselWordExpr_R_wrk()
1794 if (mode64) { in iselWordExpr_R_wrk()
1803 if ((op_unop != Iop_1Uto64) || mode64) { in iselWordExpr_R_wrk()
1826 if (mode64) { in iselWordExpr_R_wrk()
1843 if (op_unop == Iop_Clz64 && !mode64) in iselWordExpr_R_wrk()
1856 if (op_unop == Iop_Left64 && !mode64) in iselWordExpr_R_wrk()
1878 if (!mode64) goto irreducible; in iselWordExpr_R_wrk()
1902 PPCInstr_Load( 4, dst, am_off12, mode64 )); in iselWordExpr_R_wrk()
1910 if (mode64) { in iselWordExpr_R_wrk()
1929 mode64 )); in iselWordExpr_R_wrk()
1946 if (mode64) { in iselWordExpr_R_wrk()
1952 am_addr = PPCAMode_IR( 0, StackFramePtr(mode64) ); in iselWordExpr_R_wrk()
1958 addInstr(env, PPCInstr_Load( 8, r_dst, am_addr, mode64 )); in iselWordExpr_R_wrk()
1976 am_addr = PPCAMode_IR( 0, StackFramePtr(mode64) ); in iselWordExpr_R_wrk()
1982 addInstr(env, PPCInstr_Load( 4, r_dst, am_addr, mode64 )); in iselWordExpr_R_wrk()
1990 if (mode64) { in iselWordExpr_R_wrk()
1996 am_addr = PPCAMode_IR( 0, StackFramePtr(mode64) ); in iselWordExpr_R_wrk()
2002 addInstr(env, PPCInstr_Load( 8, r_dst, am_addr, mode64 )); in iselWordExpr_R_wrk()
2018 argregs[0] = hregPPC_GPR3(mode64); in iselWordExpr_R_wrk()
2043 argregs[0] = hregPPC_GPR3(mode64); in iselWordExpr_R_wrk()
2067 ty == Ity_I32 || ((ty == Ity_I64) && mode64)) { in iselWordExpr_R_wrk()
2070 GuestStatePtr(mode64) ); in iselWordExpr_R_wrk()
2072 r_dst, am_addr, mode64 )); in iselWordExpr_R_wrk()
2083 if (mode64 && ty == Ity_I64) { in iselWordExpr_R_wrk()
2085 r_dst, src_am, mode64 )); in iselWordExpr_R_wrk()
2088 if ((!mode64) && ty == Ity_I32) { in iselWordExpr_R_wrk()
2090 r_dst, src_am, mode64 )); in iselWordExpr_R_wrk()
2111 addInstr(env, mk_iMOVds_RR(r_dst, hregPPC_GPR3(mode64))); in iselWordExpr_R_wrk()
2122 case Ico_U64: if (!mode64) goto irreducible; in iselWordExpr_R_wrk()
2129 addInstr(env, PPCInstr_LI(r_dst, (ULong)l, mode64)); in iselWordExpr_R_wrk()
2136 ty == Ity_I32 || ((ty == Ity_I64) && mode64)) && in iselWordExpr_R_wrk()
2203 Bool mode64 = env->mode64; in sane_AMode() local
2208 return toBool( hregClass(am->Pam.IR.base) == HRcGPR(mode64) && in sane_AMode()
2212 return toBool( hregClass(am->Pam.RR.base) == HRcGPR(mode64) && in sane_AMode()
2214 hregClass(am->Pam.RR.index) == HRcGPR(mode64) && in sane_AMode()
2234 if (env->mode64) { in iselWordExpr_AMode_wrk()
2320 vassert(hregClass(ri->Prh.Reg.reg) == HRcGPR(env->mode64)); in iselWordExpr_RH()
2335 ty == Ity_I32 || ((ty == Ity_I64) && env->mode64)); in iselWordExpr_RH_wrk()
2343 case Ico_U64: vassert(env->mode64); in iselWordExpr_RH_wrk()
2380 vassert(hregClass(ri->Pri.Reg) == HRcGPR(env->mode64)); in iselWordExpr_RI()
2394 ty == Ity_I32 || ((ty == Ity_I64) && env->mode64)); in iselWordExpr_RI_wrk()
2400 case Ico_U64: vassert(env->mode64); in iselWordExpr_RI_wrk()
2424 vassert(!env->mode64); in iselWordExpr_RH5u()
2433 vassert(hregClass(ri->Prh.Reg.reg) == HRcGPR(env->mode64)); in iselWordExpr_RH5u()
2469 vassert(env->mode64); in iselWordExpr_RH6u()
2478 vassert(hregClass(ri->Prh.Reg.reg) == HRcGPR(env->mode64)); in iselWordExpr_RH6u()
2527 addInstr(env, PPCInstr_LI(r_zero, 0, env->mode64)); in iselCondCode_wrk()
2615 if (!env->mode64) { in iselCondCode_wrk()
2645 vassert(env->mode64); in iselCondCode_wrk()
2690 vassert(env->mode64); in iselInt128Expr()
2695 vassert(hregClass(*rHi) == HRcGPR(env->mode64)); in iselInt128Expr()
2697 vassert(hregClass(*rLo) == HRcGPR(env->mode64)); in iselInt128Expr()
2769 vassert(!env->mode64); in iselInt128Expr_to_32x4()
2825 vassert(!env->mode64); in iselInt64Expr()
2848 vassert(!env->mode64); in iselInt64Expr_wrk()
2989 HReg r1 = StackFramePtr(env->mode64); in iselInt64Expr_wrk()
2995 vassert(!env->mode64); in iselInt64Expr_wrk()
3050 vassert(env->mode64 == False); in iselInt64Expr_wrk()
3051 addInstr(env, PPCInstr_LI(zero32, 0, env->mode64)); in iselInt64Expr_wrk()
3244 Bool mode64 = env->mode64; in iselInt64Expr_wrk() local
3246 argregs[0] = hregPPC_GPR3(mode64); in iselInt64Expr_wrk()
3247 argregs[1] = hregPPC_GPR4(mode64); in iselInt64Expr_wrk()
3282 Bool mode64 = env->mode64; in iselInt64Expr_wrk() local
3284 argregs[0] = hregPPC_GPR3(mode64); in iselInt64Expr_wrk()
3285 argregs[1] = hregPPC_GPR4(mode64); in iselInt64Expr_wrk()
3343 Bool mode64 = env->mode64; in iselFltExpr_wrk() local
3364 GuestStatePtr(env->mode64) ); in iselFltExpr_wrk()
3400 PPCAMode* zero_r1 = PPCAMode_IR( 0, StackFramePtr(env->mode64) ); in iselFltExpr_wrk()
3414 if (mode64) { in iselFltExpr_wrk()
3417 HReg r1 = StackFramePtr(env->mode64); in iselFltExpr_wrk()
3440 HReg r1 = StackFramePtr(env->mode64); in iselFltExpr_wrk()
3514 Bool mode64 = env->mode64; in iselDblExpr_wrk() local
3540 if (!mode64) { in iselDblExpr_wrk()
3543 addInstr(env, PPCInstr_LI(r_srcHi, u.u32x2[0], mode64)); in iselDblExpr_wrk()
3544 addInstr(env, PPCInstr_LI(r_srcLo, u.u32x2[1], mode64)); in iselDblExpr_wrk()
3548 addInstr(env, PPCInstr_LI(r_src, u.u64, mode64)); in iselDblExpr_wrk()
3567 GuestStatePtr(mode64) ); in iselDblExpr_wrk()
3662 if (mode64) { in iselDblExpr_wrk()
3665 HReg r1 = StackFramePtr(env->mode64); in iselDblExpr_wrk()
3689 HReg r1 = StackFramePtr(env->mode64); in iselDblExpr_wrk()
3744 if (!mode64) { in iselDblExpr_wrk()
3764 am_addr = PPCAMode_IR( 0, StackFramePtr(env->mode64) ); in iselDblExpr_wrk()
3767 addInstr(env, PPCInstr_Store( 4, am_addr, src, env->mode64 )); in iselDblExpr_wrk()
3823 Bool mode64 = env->mode64; in iselDfp64Expr_wrk() local
3838 GuestStatePtr(mode64) ); in iselDfp64Expr_wrk()
3855 if (!mode64) { in iselDfp64Expr_wrk()
4257 Bool mode64 = env->mode64; in iselVecExpr_wrk() local
4275 GuestStatePtr(mode64) ))); in iselVecExpr_wrk()
4362 addInstr(env, PPCInstr_LI(r_zeros, 0x0, mode64)); in iselVecExpr_wrk()
4363 addInstr(env, PPCInstr_Store( 4, am_off0, r_zeros, mode64 )); in iselVecExpr_wrk()
4364 addInstr(env, PPCInstr_Store( 4, am_off4, r_zeros, mode64 )); in iselVecExpr_wrk()
4365 addInstr(env, PPCInstr_Store( 4, am_off8, r_zeros, mode64 )); in iselVecExpr_wrk()
4368 addInstr(env, PPCInstr_Store( 4, am_off12, r_src, mode64 )); in iselVecExpr_wrk()
4391 if (!mode64) { in iselVecExpr_wrk()
4407 addInstr(env, PPCInstr_Store( 4, am_off12, r0, mode64 )); in iselVecExpr_wrk()
4408 addInstr(env, PPCInstr_Store( 4, am_off8, r1, mode64 )); in iselVecExpr_wrk()
4411 addInstr(env, PPCInstr_Store( 4, am_off4, r2, mode64 )); in iselVecExpr_wrk()
4412 addInstr(env, PPCInstr_Store( 4, am_off0, r3, mode64 )); in iselVecExpr_wrk()
4434 addInstr(env, PPCInstr_Store( 8, am_off0, rHi, mode64 )); in iselVecExpr_wrk()
4435 addInstr(env, PPCInstr_Store( 8, am_off8, rLo, mode64 )); in iselVecExpr_wrk()
4659 LibVEX_ppVexHwCaps(mode64 ? VexArchPPC64 : VexArchPPC32, in iselVecExpr_wrk()
4672 Bool mode64 = env->mode64; in iselStmt() local
4689 if (!mode64 && (tya != Ity_I32)) in iselStmt()
4691 if (mode64 && (tya != Ity_I64)) in iselStmt()
4695 (mode64 && (tyd == Ity_I64))) { in iselStmt()
4700 am_addr, r_src, mode64 )); in iselStmt()
4727 if (tyd == Ity_I64 && !mode64) { in iselStmt()
4751 ty == Ity_I32 || ((ty == Ity_I64) && mode64)) { in iselStmt()
4754 GuestStatePtr(mode64) ); in iselStmt()
4756 am_addr, r_src, mode64 )); in iselStmt()
4759 if (!mode64 && ty == Ity_I64) { in iselStmt()
4762 GuestStatePtr(mode64) ); in iselStmt()
4765 addInstr(env, PPCInstr_Store( 4, am_addr, rHi, mode64 )); in iselStmt()
4766 addInstr(env, PPCInstr_Store( 4, am_addr4, rLo, mode64 )); in iselStmt()
4774 GuestStatePtr(mode64) ); in iselStmt()
4782 GuestStatePtr(mode64) ); in iselStmt()
4790 GuestStatePtr(mode64) ); in iselStmt()
4806 if (mode64 && ty == Ity_I64) { in iselStmt()
4809 dst_am, r_src, mode64 )); in iselStmt()
4812 if ((!mode64) && ty == Ity_I32) { in iselStmt()
4815 dst_am, r_src, mode64 )); in iselStmt()
4826 ty == Ity_I32 || ((ty == Ity_I64) && mode64)) { in iselStmt()
4832 if (!mode64 && ty == Ity_I64) { in iselStmt()
4841 if (mode64 && ty == Ity_I128) { in iselStmt()
4849 if (!mode64 && ty == Ity_I128) { in iselStmt()
4916 if (!mode64 && (tyAddr != Ity_I32)) in iselStmt()
4918 if (mode64 && (tyAddr != Ity_I64)) in iselStmt()
4926 addInstr(env, PPCInstr_LoadL( 4, r_dst, r_addr, mode64 )); in iselStmt()
4929 if (tyRes == Ity_I64 && mode64) { in iselStmt()
4930 addInstr(env, PPCInstr_LoadL( 8, r_dst, r_addr, mode64 )); in iselStmt()
4943 if (tyData == Ity_I32 || (tyData == Ity_I64 && mode64)) { in iselStmt()
4945 r_a, r_src, mode64 )); in iselStmt()
4949 env->mode64 ? False : True in iselStmt()
4988 if (!mode64 && retty == Ity_I64) { in iselStmt()
4993 addInstr(env, mk_iMOVds_RR(r_dstHi, hregPPC_GPR3(mode64))); in iselStmt()
4994 addInstr(env, mk_iMOVds_RR(r_dstLo, hregPPC_GPR4(mode64))); in iselStmt()
4998 retty == Ity_I32 || ((retty == Ity_I64) && mode64)) { in iselStmt()
5002 addInstr(env, mk_iMOVds_RR(r_dst, hregPPC_GPR3(mode64))); in iselStmt()
5038 if (!mode64 && dst->tag != Ico_U32) in iselStmt()
5040 if (mode64 && dst->tag != Ico_U64) in iselStmt()
5045 hregPPC_GPR31(mode64)); in iselStmt()
5056 = mode64 in iselStmt()
5061 mode64 ? (Addr64)stmt->Ist.Exit.dst->Ico.U64 in iselStmt()
5128 vassert(cdst->tag == (env->mode64 ? Ico_U64 :Ico_U32)); in iselNext()
5131 PPCAMode* amCIA = PPCAMode_IR(offsIP, hregPPC_GPR31(env->mode64)); in iselNext()
5137 = env->mode64 in iselNext()
5142 env->mode64 ? (Addr64)cdst->Ico.U64 in iselNext()
5161 PPCAMode* amCIA = PPCAMode_IR(offsIP, hregPPC_GPR31(env->mode64)); in iselNext()
5188 PPCAMode* amCIA = PPCAMode_IR(offsIP, hregPPC_GPR31(env->mode64)); in iselNext()
5224 Bool mode64 = False; in iselSB_PPC() local
5230 mode64 = arch_host == VexArchPPC64; in iselSB_PPC()
5231 if (!mode64) vassert(max_ga <= 0xFFFFFFFFULL); in iselSB_PPC()
5241 if (mode64) { in iselSB_PPC()
5252 env->mode64 = mode64; in iselSB_PPC()
5269 if (mode64) { in iselSB_PPC()
5294 if (mode64) { hregLo = mkHReg(j++, HRcInt64, True); break; in iselSB_PPC()
5298 if (mode64) { hregLo = mkHReg(j++, HRcInt64, True); break; in iselSB_PPC()
5303 if (mode64) { hregLo = mkHReg(j++, HRcInt64, True); in iselSB_PPC()
5322 if (!mode64) { in iselSB_PPC()
5330 amCounter = PPCAMode_IR(offs_Host_EvC_Counter, hregPPC_GPR31(mode64)); in iselSB_PPC()
5331 amFailAddr = PPCAMode_IR(offs_Host_EvC_FailAddr, hregPPC_GPR31(mode64)); in iselSB_PPC()