Commit ae8b3cd8 by Richard Kenner

(pa_adjust_cost): Use pa_cpu, not pa_cpu_attr.

From-SVN: r10505
parent 4db7b4ce
...@@ -2621,7 +2621,7 @@ pa_adjust_cost (insn, link, dep_insn, cost) ...@@ -2621,7 +2621,7 @@ pa_adjust_cost (insn, link, dep_insn, cost)
case TYPE_FPLOAD: case TYPE_FPLOAD:
/* This cost 3 cycles, not 2 as the md says for the /* This cost 3 cycles, not 2 as the md says for the
700 and 7100. Note scaling of cost for 7100. */ 700 and 7100. Note scaling of cost for 7100. */
return cost + (pa_cpu_attr == PROCESSOR_700) ? 1 : 2; return cost + (pa_cpu == PROCESSOR_700) ? 1 : 2;
case TYPE_FPALU: case TYPE_FPALU:
case TYPE_FPMULSGL: case TYPE_FPMULSGL:
...@@ -2632,7 +2632,7 @@ pa_adjust_cost (insn, link, dep_insn, cost) ...@@ -2632,7 +2632,7 @@ pa_adjust_cost (insn, link, dep_insn, cost)
case TYPE_FPSQRTDBL: case TYPE_FPSQRTDBL:
/* In these important cases, we save one cycle compared to /* In these important cases, we save one cycle compared to
when flop instruction feed each other. */ when flop instruction feed each other. */
return cost - (pa_cpu_attr == PROCESSOR_700) ? 1 : 2; return cost - (pa_cpu == PROCESSOR_700) ? 1 : 2;
default: default:
return cost; return cost;
...@@ -2680,7 +2680,7 @@ pa_adjust_cost (insn, link, dep_insn, cost) ...@@ -2680,7 +2680,7 @@ pa_adjust_cost (insn, link, dep_insn, cost)
preceding arithmetic operation has finished if preceding arithmetic operation has finished if
the target of the fpload is any of the sources the target of the fpload is any of the sources
(or destination) of the arithmetic operation. */ (or destination) of the arithmetic operation. */
return cost - (pa_cpu_attr == PROCESSOR_700) ? 1 : 2; return cost - (pa_cpu == PROCESSOR_700) ? 1 : 2;
default: default:
return 0; return 0;
...@@ -2715,7 +2715,7 @@ pa_adjust_cost (insn, link, dep_insn, cost) ...@@ -2715,7 +2715,7 @@ pa_adjust_cost (insn, link, dep_insn, cost)
preceding divide or sqrt operation has finished if preceding divide or sqrt operation has finished if
the target of the ALU flop is any of the sources the target of the ALU flop is any of the sources
(or destination) of the divide or sqrt operation. */ (or destination) of the divide or sqrt operation. */
return cost - (pa_cpu_attr == PROCESSOR_700) ? 2 : 4; return cost - (pa_cpu == PROCESSOR_700) ? 2 : 4;
default: default:
return 0; return 0;
...@@ -2761,7 +2761,7 @@ pa_adjust_cost (insn, link, dep_insn, cost) ...@@ -2761,7 +2761,7 @@ pa_adjust_cost (insn, link, dep_insn, cost)
preceding arithmetic operation has finished if preceding arithmetic operation has finished if
the target of the fpload is the destination of the the target of the fpload is the destination of the
arithmetic operation. */ arithmetic operation. */
return cost - (pa_cpu_attr == PROCESSOR_700) ? 1 : 2; return cost - (pa_cpu == PROCESSOR_700) ? 1 : 2;
default: default:
return 0; return 0;
...@@ -2796,7 +2796,7 @@ pa_adjust_cost (insn, link, dep_insn, cost) ...@@ -2796,7 +2796,7 @@ pa_adjust_cost (insn, link, dep_insn, cost)
preceding divide or sqrt operation has finished if preceding divide or sqrt operation has finished if
the target of the ALU flop is also the target of the target of the ALU flop is also the target of
of the divide or sqrt operation. */ of the divide or sqrt operation. */
return cost - (pa_cpu_attr == PROCESSOR_700) ? 2 : 4; return cost - (pa_cpu == PROCESSOR_700) ? 2 : 4;
default: default:
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment