Home | History | Annotate | Download | only in priv

Lines Matching refs:am

240    PPCAMode* am = LibVEX_Alloc_inline(sizeof(PPCAMode));
242 am->tag = Pam_IR;
243 am->Pam.IR.base = base;
244 am->Pam.IR.index = idx;
245 return am;
248 PPCAMode* am = LibVEX_Alloc_inline(sizeof(PPCAMode));
249 am->tag = Pam_RR;
250 am->Pam.RR.base = base;
251 am->Pam.RR.index = idx;
252 return am;
255 PPCAMode* dopyPPCAMode ( PPCAMode* am ) {
256 switch (am->tag) {
258 return PPCAMode_IR( am->Pam.IR.index, am->Pam.IR.base );
260 return PPCAMode_RR( am->Pam.RR.index, am->Pam.RR.base );
266 void ppPPCAMode ( PPCAMode* am ) {
267 switch (am->tag) {
269 if (am->Pam.IR.index == 0)
272 vex_printf("%d(", (Int)am->Pam.IR.index);
273 ppHRegPPC(am->Pam.IR.base);
277 ppHRegPPC(am->Pam.RR.base);
279 ppHRegPPC(am->Pam.RR.index);
286 static void addRegUsage_PPCAMode ( HRegUsage* u, PPCAMode* am ) {
287 switch (am->tag) {
289 addHRegUse(u, HRmRead, am->Pam.IR.base);
292 addHRegUse(u, HRmRead, am->Pam.RR.base);
293 addHRegUse(u, HRmRead, am->Pam.RR.index);
300 static void mapRegs_PPCAMode ( HRegRemap* m, PPCAMode* am ) {
301 switch (am->tag) {
303 am->Pam.IR.base = lookupHRegRemap(m, am->Pam.IR.base);
306 am->Pam.RR.base = lookupHRegRemap(m, am->Pam.RR.base);
307 am->Pam.RR.index = lookupHRegRemap(m, am->Pam.RR.index);
2997 PPCAMode* am;
3000 am = PPCAMode_IR( offsetB, GuestStatePtr(mode64) );
3004 *i1 = PPCInstr_Store( 8, am, rreg, mode64 );
3008 *i1 = PPCInstr_Store( 4, am, rreg, mode64 );
3011 *i1 = PPCInstr_FpLdSt ( False/*store*/, 8, rreg, am );
3016 *i1 = PPCInstr_AvLdSt ( False/*store*/, 16, rreg, am );
3027 PPCAMode* am;
3030 am = PPCAMode_IR( offsetB, GuestStatePtr(mode64) );
3034 *i1 = PPCInstr_Load( 8, rreg, am, mode64 );
3038 *i1 = PPCInstr_Load( 4, rreg, am, mode64 );
3041 *i1 = PPCInstr_FpLdSt ( True/*load*/, 8, rreg, am );
3045 *i1 = PPCInstr_AvLdSt ( True/*load*/, 16, rreg, am );
3354 PPCAMode* am, Bool mode64, VexEndness endness_host )
3357 vassert(am->tag == Pam_IR);
3358 vassert(am->Pam.IR.index < 0x10000);
3360 rA = iregEnc(am->Pam.IR.base, mode64);
3361 idx = am->Pam.IR.index;
3374 UInt rSD, PPCAMode* am, Bool mode64,
3378 vassert(am->tag == Pam_RR);
3380 rA = iregEnc(am->Pam.RR.base, mode64);
3381 rB = iregEnc(am->Pam.RR.index, mode64);
3561 UInt reg, PPCAMode* am, Bool mode64, VexEndness endness_host )
3565 switch (am->tag) {
3568 vassert(0 == (am->Pam.IR.index & 3));
3575 p = doAMode_IR(p, opc1, reg, am, mode64, endness_host);
3586 switch (am->tag) {
3589 vassert(0 == (am->Pam.IR.index & 3));
3596 p = doAMode_IR(p, opc1, reg, am, mode64, endness_host);
3613 UInt reg, PPCAMode* am, Bool mode64, VexEndness endness_host )
3617 switch (am->tag) {
3620 vassert(0 == (am->Pam.IR.index & 3));
3623 p = doAMode_IR(p, opc1, reg, am, mode64, endness_host);
3634 switch (am->tag) {
3637 vassert(0 == (am->Pam.IR.index & 3));
3640 p = doAMode_IR(p, opc1, reg, am, mode64, endness_host);