• Home
  • Raw
  • Download

Lines Matching refs:mode64

270       Bool         mode64;  member
289 vassert(!env->mode64); in lookupIRTempPair()
301 ppPPCInstr(instr, env->mode64); in addInstr()
308 HReg reg = mkHReg(env->vreg_ctr, HRcGPR(env->mode64), in newVRegI()
437 HReg sp = StackFramePtr(env->mode64); in add_to_sp()
445 HReg sp = StackFramePtr(env->mode64); in sub_from_sp()
461 addInstr(env, mk_iMOVds_RR(r, StackFramePtr(env->mode64))); in get_sp_aligned16()
467 PPCInstr_LI(align16, 0xFFFFFFFFFFFFFFF0ULL, env->mode64)); in get_sp_aligned16()
481 vassert(!env->mode64); in mk_LoadRR32toFPR()
486 am_addr0 = PPCAMode_IR( 0, StackFramePtr(env->mode64) ); in mk_LoadRR32toFPR()
487 am_addr1 = PPCAMode_IR( 4, StackFramePtr(env->mode64) ); in mk_LoadRR32toFPR()
490 addInstr(env, PPCInstr_Store( 4, am_addr0, r_srcHi, env->mode64 )); in mk_LoadRR32toFPR()
491 addInstr(env, PPCInstr_Store( 4, am_addr1, r_srcLo, env->mode64 )); in mk_LoadRR32toFPR()
506 vassert(env->mode64); in mk_LoadR64toFPR()
510 am_addr0 = PPCAMode_IR( 0, StackFramePtr(env->mode64) ); in mk_LoadR64toFPR()
513 addInstr(env, PPCInstr_Store( 8, am_addr0, r_src, env->mode64 )); in mk_LoadR64toFPR()
588 env->mode64 ? False : True/*F:64-bit, T:32-bit shift*/, in genGuestArrayOffset()
596 PPCAMode_RR( GuestStatePtr(env->mode64), rtmp ); in genGuestArrayOffset()
637 Bool mode64 = env->mode64; in doHelperCall() local
642 = (!mode64) && env->vbi->host_ppc32_regalign_int64_args; in doHelperCall()
703 argregs[0] = hregPPC_GPR3(mode64); in doHelperCall()
704 argregs[1] = hregPPC_GPR4(mode64); in doHelperCall()
705 argregs[2] = hregPPC_GPR5(mode64); in doHelperCall()
706 argregs[3] = hregPPC_GPR6(mode64); in doHelperCall()
707 argregs[4] = hregPPC_GPR7(mode64); in doHelperCall()
708 argregs[5] = hregPPC_GPR8(mode64); in doHelperCall()
709 argregs[6] = hregPPC_GPR9(mode64); in doHelperCall()
710 argregs[7] = hregPPC_GPR10(mode64); in doHelperCall()
753 GuestStatePtr(mode64) )); in doHelperCall()
761 if (!mode64) { in doHelperCall()
800 GuestStatePtr(mode64) )); in doHelperCall()
808 if (!mode64) { in doHelperCall()
854 target = mode64 ? Ptr_to_ULong(cee->addr) : in doHelperCall()
901 vassert(hregClass(r_rmIR) == HRcGPR(env->mode64)); in roundModeIRtoPPC()
976 if (env->mode64) { in set_FPU_rounding_mode()
1063 addInstr(env, PPCInstr_LI(r_src, (Long)simm32, env->mode64)); in mk_AvDuplicateRI()
1084 addInstr(env, PPCInstr_Store( 4, am_off12, r_src, env->mode64 )); in mk_AvDuplicateRI()
1150 vassert(hregClass(r) == HRcGPR(env->mode64)); in iselWordExpr_R()
1158 Bool mode64 = env->mode64; in iselWordExpr_R_wrk() local
1164 ty == Ity_I32 || ((ty == Ity_I64) && mode64)); in iselWordExpr_R_wrk()
1181 r_dst, am_addr, mode64 )); in iselWordExpr_R_wrk()
1248 if (!mode64) in iselWordExpr_R_wrk()
1275 vassert(mode64); in iselWordExpr_R_wrk()
1312 vassert(mode64); in iselWordExpr_R_wrk()
1340 if (mode64 in iselWordExpr_R_wrk()
1383 vassert(mode64); in iselWordExpr_R_wrk()
1409 vassert(mode64); in iselWordExpr_R_wrk()
1413 addInstr(env, PPCInstr_LI(msk, 0xFFFFFFFF, mode64)); in iselWordExpr_R_wrk()
1483 HReg r1 = StackFramePtr(env->mode64); in iselWordExpr_R_wrk()
1499 addInstr(env, PPCInstr_Load(4, idst, zero_r1, mode64)); in iselWordExpr_R_wrk()
1502 if (mode64) in iselWordExpr_R_wrk()
1513 if (mode64) { in iselWordExpr_R_wrk()
1514 HReg r1 = StackFramePtr(env->mode64); in iselWordExpr_R_wrk()
1567 addInstr(env, PPCInstr_Load(2,r_dst,amode, mode64)); in iselWordExpr_R_wrk()
1589 vassert(mode64); in iselWordExpr_R_wrk()
1617 vassert(mode64); in iselWordExpr_R_wrk()
1629 vassert(mode64); in iselWordExpr_R_wrk()
1641 if (op_unop == Iop_Not64) vassert(mode64); in iselWordExpr_R_wrk()
1648 if (!mode64) { in iselWordExpr_R_wrk()
1662 if (!mode64) { in iselWordExpr_R_wrk()
1672 if (mode64) { /* This is a no-op. */ in iselWordExpr_R_wrk()
1688 if (mode64) { in iselWordExpr_R_wrk()
1695 if (mode64) { in iselWordExpr_R_wrk()
1724 if (mode64) { in iselWordExpr_R_wrk()
1741 if (op_unop == Iop_Clz64 && !mode64) in iselWordExpr_R_wrk()
1754 if (op_unop == Iop_Left64 && !mode64) in iselWordExpr_R_wrk()
1776 if (!mode64) goto irreducible; in iselWordExpr_R_wrk()
1800 PPCInstr_Load( 4, dst, am_off12, mode64 )); in iselWordExpr_R_wrk()
1808 if (mode64) { in iselWordExpr_R_wrk()
1827 mode64 )); in iselWordExpr_R_wrk()
1844 if (mode64) { in iselWordExpr_R_wrk()
1850 am_addr = PPCAMode_IR( 0, StackFramePtr(mode64) ); in iselWordExpr_R_wrk()
1856 addInstr(env, PPCInstr_Load( 8, r_dst, am_addr, mode64 )); in iselWordExpr_R_wrk()
1874 am_addr = PPCAMode_IR( 0, StackFramePtr(mode64) ); in iselWordExpr_R_wrk()
1880 addInstr(env, PPCInstr_Load( 4, r_dst, am_addr, mode64 )); in iselWordExpr_R_wrk()
1895 ty == Ity_I32 || ((ty == Ity_I64) && mode64)) { in iselWordExpr_R_wrk()
1898 GuestStatePtr(mode64) ); in iselWordExpr_R_wrk()
1900 r_dst, am_addr, mode64 )); in iselWordExpr_R_wrk()
1911 if (mode64 && ty == Ity_I64) { in iselWordExpr_R_wrk()
1913 r_dst, src_am, mode64 )); in iselWordExpr_R_wrk()
1916 if ((!mode64) && ty == Ity_I32) { in iselWordExpr_R_wrk()
1918 r_dst, src_am, mode64 )); in iselWordExpr_R_wrk()
1939 addInstr(env, mk_iMOVds_RR(r_dst, hregPPC_GPR3(mode64))); in iselWordExpr_R_wrk()
1950 case Ico_U64: if (!mode64) goto irreducible; in iselWordExpr_R_wrk()
1957 addInstr(env, PPCInstr_LI(r_dst, (ULong)l, mode64)); in iselWordExpr_R_wrk()
1964 ty == Ity_I32 || ((ty == Ity_I64) && mode64)) && in iselWordExpr_R_wrk()
2031 Bool mode64 = env->mode64; in sane_AMode() local
2036 return toBool( hregClass(am->Pam.IR.base) == HRcGPR(mode64) && in sane_AMode()
2040 return toBool( hregClass(am->Pam.RR.base) == HRcGPR(mode64) && in sane_AMode()
2042 hregClass(am->Pam.RR.index) == HRcGPR(mode64) && in sane_AMode()
2062 if (env->mode64) { in iselWordExpr_AMode_wrk()
2148 vassert(hregClass(ri->Prh.Reg.reg) == HRcGPR(env->mode64)); in iselWordExpr_RH()
2163 ty == Ity_I32 || ((ty == Ity_I64) && env->mode64)); in iselWordExpr_RH_wrk()
2171 case Ico_U64: vassert(env->mode64); in iselWordExpr_RH_wrk()
2208 vassert(hregClass(ri->Pri.Reg) == HRcGPR(env->mode64)); in iselWordExpr_RI()
2222 ty == Ity_I32 || ((ty == Ity_I64) && env->mode64)); in iselWordExpr_RI_wrk()
2228 case Ico_U64: vassert(env->mode64); in iselWordExpr_RI_wrk()
2252 vassert(!env->mode64); in iselWordExpr_RH5u()
2261 vassert(hregClass(ri->Prh.Reg.reg) == HRcGPR(env->mode64)); in iselWordExpr_RH5u()
2297 vassert(env->mode64); in iselWordExpr_RH6u()
2306 vassert(hregClass(ri->Prh.Reg.reg) == HRcGPR(env->mode64)); in iselWordExpr_RH6u()
2355 addInstr(env, PPCInstr_LI(r_zero, 0, env->mode64)); in iselCondCode_wrk()
2443 if (!env->mode64) { in iselCondCode_wrk()
2473 vassert(env->mode64); in iselCondCode_wrk()
2518 vassert(env->mode64); in iselInt128Expr()
2523 vassert(hregClass(*rHi) == HRcGPR(env->mode64)); in iselInt128Expr()
2525 vassert(hregClass(*rLo) == HRcGPR(env->mode64)); in iselInt128Expr()
2603 vassert(!env->mode64); in iselInt64Expr()
2626 vassert(!env->mode64); in iselInt64Expr_wrk()
2767 HReg r1 = StackFramePtr(env->mode64); in iselInt64Expr_wrk()
2773 vassert(!env->mode64); in iselInt64Expr_wrk()
2828 vassert(env->mode64 == False); in iselInt64Expr_wrk()
2829 addInstr(env, PPCInstr_LI(zero32, 0, env->mode64)); in iselInt64Expr_wrk()
2986 Bool mode64 = env->mode64; in iselFltExpr_wrk() local
3007 GuestStatePtr(env->mode64) ); in iselFltExpr_wrk()
3043 PPCAMode* zero_r1 = PPCAMode_IR( 0, StackFramePtr(env->mode64) ); in iselFltExpr_wrk()
3057 if (mode64) { in iselFltExpr_wrk()
3060 HReg r1 = StackFramePtr(env->mode64); in iselFltExpr_wrk()
3083 HReg r1 = StackFramePtr(env->mode64); in iselFltExpr_wrk()
3157 Bool mode64 = env->mode64; in iselDblExpr_wrk() local
3183 if (!mode64) { in iselDblExpr_wrk()
3186 addInstr(env, PPCInstr_LI(r_srcHi, u.u32x2[0], mode64)); in iselDblExpr_wrk()
3187 addInstr(env, PPCInstr_LI(r_srcLo, u.u32x2[1], mode64)); in iselDblExpr_wrk()
3191 addInstr(env, PPCInstr_LI(r_src, u.u64, mode64)); in iselDblExpr_wrk()
3210 GuestStatePtr(mode64) ); in iselDblExpr_wrk()
3287 if (mode64) { in iselDblExpr_wrk()
3290 HReg r1 = StackFramePtr(env->mode64); in iselDblExpr_wrk()
3314 HReg r1 = StackFramePtr(env->mode64); in iselDblExpr_wrk()
3368 if (!mode64) { in iselDblExpr_wrk()
3388 am_addr = PPCAMode_IR( 0, StackFramePtr(env->mode64) ); in iselDblExpr_wrk()
3391 addInstr(env, PPCInstr_Store( 4, am_addr, src, env->mode64 )); in iselDblExpr_wrk()
3455 Bool mode64 = env->mode64; in iselVecExpr_wrk() local
3473 GuestStatePtr(mode64) ))); in iselVecExpr_wrk()
3560 addInstr(env, PPCInstr_LI(r_zeros, 0x0, mode64)); in iselVecExpr_wrk()
3561 addInstr(env, PPCInstr_Store( 4, am_off0, r_zeros, mode64 )); in iselVecExpr_wrk()
3562 addInstr(env, PPCInstr_Store( 4, am_off4, r_zeros, mode64 )); in iselVecExpr_wrk()
3563 addInstr(env, PPCInstr_Store( 4, am_off8, r_zeros, mode64 )); in iselVecExpr_wrk()
3566 addInstr(env, PPCInstr_Store( 4, am_off12, r_src, mode64 )); in iselVecExpr_wrk()
3589 if (!mode64) { in iselVecExpr_wrk()
3605 addInstr(env, PPCInstr_Store( 4, am_off12, r0, mode64 )); in iselVecExpr_wrk()
3606 addInstr(env, PPCInstr_Store( 4, am_off8, r1, mode64 )); in iselVecExpr_wrk()
3609 addInstr(env, PPCInstr_Store( 4, am_off4, r2, mode64 )); in iselVecExpr_wrk()
3610 addInstr(env, PPCInstr_Store( 4, am_off0, r3, mode64 )); in iselVecExpr_wrk()
3632 addInstr(env, PPCInstr_Store( 8, am_off0, rHi, mode64 )); in iselVecExpr_wrk()
3633 addInstr(env, PPCInstr_Store( 8, am_off8, rLo, mode64 )); in iselVecExpr_wrk()
3857 LibVEX_ppVexHwCaps(mode64 ? VexArchPPC64 : VexArchPPC32, in iselVecExpr_wrk()
3870 Bool mode64 = env->mode64; in iselStmt() local
3887 if (!mode64 && (tya != Ity_I32)) in iselStmt()
3889 if (mode64 && (tya != Ity_I64)) in iselStmt()
3893 (mode64 && (tyd == Ity_I64))) { in iselStmt()
3898 am_addr, r_src, mode64 )); in iselStmt()
3925 if (tyd == Ity_I64 && !mode64) { in iselStmt()
3949 ty == Ity_I32 || ((ty == Ity_I64) && mode64)) { in iselStmt()
3952 GuestStatePtr(mode64) ); in iselStmt()
3954 am_addr, r_src, mode64 )); in iselStmt()
3957 if (!mode64 && ty == Ity_I64) { in iselStmt()
3960 GuestStatePtr(mode64) ); in iselStmt()
3963 addInstr(env, PPCInstr_Store( 4, am_addr, rHi, mode64 )); in iselStmt()
3964 addInstr(env, PPCInstr_Store( 4, am_addr4, rLo, mode64 )); in iselStmt()
3972 GuestStatePtr(mode64) ); in iselStmt()
3980 GuestStatePtr(mode64) ); in iselStmt()
3995 if (mode64 && ty == Ity_I64) { in iselStmt()
3998 dst_am, r_src, mode64 )); in iselStmt()
4001 if ((!mode64) && ty == Ity_I32) { in iselStmt()
4004 dst_am, r_src, mode64 )); in iselStmt()
4015 ty == Ity_I32 || ((ty == Ity_I64) && mode64)) { in iselStmt()
4021 if (!mode64 && ty == Ity_I64) { in iselStmt()
4029 if (mode64 && ty == Ity_I128) { in iselStmt()
4072 if (!mode64 && (tyAddr != Ity_I32)) in iselStmt()
4074 if (mode64 && (tyAddr != Ity_I64)) in iselStmt()
4082 addInstr(env, PPCInstr_LoadL( 4, r_dst, r_addr, mode64 )); in iselStmt()
4085 if (tyRes == Ity_I64 && mode64) { in iselStmt()
4086 addInstr(env, PPCInstr_LoadL( 8, r_dst, r_addr, mode64 )); in iselStmt()
4099 if (tyData == Ity_I32 || (tyData == Ity_I64 && mode64)) { in iselStmt()
4101 r_a, r_src, mode64 )); in iselStmt()
4105 env->mode64 ? False : True in iselStmt()
4144 if (!mode64 && retty == Ity_I64) { in iselStmt()
4149 addInstr(env, mk_iMOVds_RR(r_dstHi, hregPPC_GPR3(mode64))); in iselStmt()
4150 addInstr(env, mk_iMOVds_RR(r_dstLo, hregPPC_GPR4(mode64))); in iselStmt()
4154 retty == Ity_I32 || ((retty == Ity_I64) && mode64)) { in iselStmt()
4158 addInstr(env, mk_iMOVds_RR(r_dst, hregPPC_GPR3(mode64))); in iselStmt()
4196 if (!mode64 && (tag != Ico_U32)) in iselStmt()
4198 if (mode64 && (tag != Ico_U64)) in iselStmt()
4251 Bool mode64 = False; in iselSB_PPC() local
4255 mode64 = arch_host == VexArchPPC64; in iselSB_PPC()
4264 if (mode64) { in iselSB_PPC()
4275 env->mode64 = mode64; in iselSB_PPC()
4304 if (mode64) { hreg = mkHReg(j++, HRcInt64, True); break; in iselSB_PPC()
4308 if (mode64) { hreg = mkHReg(j++, HRcInt64, True); break; in iselSB_PPC()
4312 case Ity_I128: vassert(mode64); in iselSB_PPC()