Lines Matching refs:sr
244 struct ia64_state_record *sr) in script_finalize() argument
246 script->pr_mask = sr->pr_mask; in script_finalize()
247 script->pr_val = sr->pr_val; in script_finalize()
264 compile_reg (struct ia64_state_record *sr, int i, struct ia64_reg_info *r, in compile_reg() argument
272 if (r->where == IA64_WHERE_NONE || r->when >= sr->when_target) in compile_reg()
394 sort_regs (struct ia64_state_record *sr, int regorder[]) in sort_regs() argument
402 if (sr->curr.reg[r].where == IA64_WHERE_NONE in sort_regs()
403 || sr->curr.reg[r].when >= sr->when_target) in sort_regs()
416 max_when = sr->curr.reg[max_reg].when; in sort_regs()
419 if (sr->curr.reg[regorder[j]].when > max_when) in sort_regs()
423 max_when = sr->curr.reg[max_reg].when; in sort_regs()
442 struct ia64_state_record sr; in build_script() local
445 ret = ia64_create_state_record (c, &sr); in build_script()
454 if (sr.when_target > sr.curr.reg[IA64_REG_PSP].when in build_script()
455 && (sr.curr.reg[IA64_REG_PSP].where == IA64_WHERE_NONE) in build_script()
456 && sr.curr.reg[IA64_REG_PSP].val != 0) in build_script()
460 insn.val = sr.curr.reg[IA64_REG_PSP].val; /* frame size */ in build_script()
464 compile_reg (&sr, IA64_REG_PSP, sr.curr.reg + IA64_REG_PSP, script); in build_script()
468 if (sr.when_target >= sr.curr.reg[IA64_REG_PRI_UNAT_GR].when in build_script()
469 || sr.when_target >= sr.curr.reg[IA64_REG_PRI_UNAT_MEM].when) in build_script()
471 if (sr.when_target < sr.curr.reg[IA64_REG_PRI_UNAT_GR].when) in build_script()
473 pri_unat = sr.curr.reg + IA64_REG_PRI_UNAT_MEM; in build_script()
474 else if (sr.when_target < sr.curr.reg[IA64_REG_PRI_UNAT_MEM].when) in build_script()
476 pri_unat = sr.curr.reg + IA64_REG_PRI_UNAT_GR; in build_script()
477 else if (sr.curr.reg[IA64_REG_PRI_UNAT_MEM].when > in build_script()
478 sr.curr.reg[IA64_REG_PRI_UNAT_GR].when) in build_script()
480 pri_unat = sr.curr.reg + IA64_REG_PRI_UNAT_MEM; in build_script()
483 pri_unat = sr.curr.reg + IA64_REG_PRI_UNAT_GR; in build_script()
486 compile_reg (&sr, IA64_REG_PRI_UNAT_MEM, pri_unat, script); in build_script()
491 num_regs = sort_regs (&sr, regorder); in build_script()
493 compile_reg (&sr, regorder[i], sr.curr.reg + regorder[i], script); in build_script()
495 script->abi_marker = sr.abi_marker; in build_script()
496 script_finalize (script, c, &sr); in build_script()
498 ia64_free_state_record (&sr); in build_script()