Lines Matching refs:ip
265 static inline int is_ra_save_ins(union mips_instruction *ip)
268 return (ip->i_format.opcode == sw_op || ip->i_format.opcode == sd_op) &&
269 ip->i_format.rs == 29 &&
270 ip->i_format.rt == 31;
273 static inline int is_jal_jalr_jr_ins(union mips_instruction *ip)
275 if (ip->j_format.opcode == jal_op)
277 if (ip->r_format.opcode != spec_op)
279 return ip->r_format.func == jalr_op || ip->r_format.func == jr_op;
282 static inline int is_sp_move_ins(union mips_instruction *ip)
285 if (ip->i_format.rs != 29 || ip->i_format.rt != 29)
287 if (ip->i_format.opcode == addiu_op || ip->i_format.opcode == daddiu_op)
294 union mips_instruction *ip = info->func;
301 if (!ip)
308 for (i = 0; i < max_insns; i++, ip++) {
310 if (is_jal_jalr_jr_ins(ip))
313 if (is_sp_move_ins(ip))
314 info->frame_size = - ip->i_format.simmediate;
317 if (info->pc_offset == -1 && is_ra_save_ins(ip)) {
319 ip->i_format.simmediate / sizeof(long);