Commit 88624c0e by Jeffrey A Law Committed by Jeff Law

configure.in (hppa configurations): Add pa32-regs.h to the list of tm files as appropriate.

        * configure.in (hppa configurations): Add pa32-regs.h to the
        list of tm files as appropriate.
        * configure: Rebuilt.
        * pa.c (compute_frame_size): Remove explicit knowledge about FP
        register numbering.
        (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
        (fmpyaddoperands, fmpysuboperands): Likewise.
        * pa.h: Remove various definitions which depend on knowing
        how registers are numbered.
        * pa32-regs.h: New file with PA32 register numbering specific
        definitions.

From-SVN: r32527
parent 1e7f0a48
Tue Mar 14 08:42:21 2000 Jeffrey A Law (law@cygnus.com)
* configure.in (hppa configurations): Add pa32-regs.h to the
list of tm files as appropriate.
* configure: Rebuilt.
* pa.c (compute_frame_size): Remove explicit knowledge about FP
register numbering.
(hppa_expand_prologue, hppa_expand_epilogue): Likewise.
(fmpyaddoperands, fmpysuboperands): Likewise.
* pa.h: Remove various definitions which depend on knowing
how registers are numbered.
* pa32-regs.h: New file with PA32 register numbering specific
definitions.
2000-03-14 Richard Henderson <rth@cygnus.com>
* regmove.c (combine_stack_adjustments): New.
......
......@@ -2675,7 +2675,7 @@ compute_frame_size (size, fregs_live)
fsize = (fsize + 7) & ~7;
/* Account for space used by the callee floating point register saves. */
for (i = 66; i >= 48; i -= 2)
for (i = FP_SAVED_REG_LAST; i >= FP_SAVED_REG_FIRST; i -= FP_REG_STEP)
if (regs_ever_live[i] || regs_ever_live[i + 1])
{
if (fregs_live)
......@@ -2980,7 +2980,7 @@ hppa_expand_prologue()
set_reg_plus_d (1, STACK_POINTER_REGNUM, offset);
/* Now actually save the FP registers. */
for (i = 66; i >= 48; i -= 2)
for (i = FP_SAVED_REG_LAST; i >= FP_SAVED_REG_FIRST; i -= FP_REG_STEP)
{
if (regs_ever_live[i] || regs_ever_live[i + 1])
{
......@@ -3118,7 +3118,7 @@ hppa_expand_epilogue ()
set_reg_plus_d (1, STACK_POINTER_REGNUM, offset);
/* Actually do the restores now. */
for (i = 66; i >= 48; i -= 2)
for (i = FP_SAVED_REG_LAST; i >= FP_SAVED_REG_FIRST; i -= FP_REG_STEP)
{
if (regs_ever_live[i] || regs_ever_live[i + 1])
{
......@@ -5698,12 +5698,12 @@ fmpyaddoperands (operands)
/* SFmode limits the registers to the upper 32 of the 32bit FP regs. */
if (mode == SFmode
&& (REGNO (operands[0]) < 57
|| REGNO (operands[1]) < 57
|| REGNO (operands[2]) < 57
|| REGNO (operands[3]) < 57
|| REGNO (operands[4]) < 57
|| REGNO (operands[5]) < 57))
&& (REGNO_REG_CLASS (REGNO (operands[0])) != FPUPPER_REGS
|| REGNO_REG_CLASS (REGNO (operands[1])) != FPUPPER_REGS
|| REGNO_REG_CLASS (REGNO (operands[2])) != FPUPPER_REGS
|| REGNO_REG_CLASS (REGNO (operands[3])) != FPUPPER_REGS
|| REGNO_REG_CLASS (REGNO (operands[4])) != FPUPPER_REGS
|| REGNO_REG_CLASS (REGNO (operands[5])) != FPUPPER_REGS))
return 0;
/* Passed. Operands are suitable for fmpyadd. */
......@@ -5755,12 +5755,12 @@ fmpysuboperands (operands)
/* SFmode limits the registers to the upper 32 of the 32bit FP regs. */
if (mode == SFmode
&& (REGNO (operands[0]) < 57
|| REGNO (operands[1]) < 57
|| REGNO (operands[2]) < 57
|| REGNO (operands[3]) < 57
|| REGNO (operands[4]) < 57
|| REGNO (operands[5]) < 57))
&& (REGNO_REG_CLASS (REGNO (operands[0])) != FPUPPER_REGS
|| REGNO_REG_CLASS (REGNO (operands[1])) != FPUPPER_REGS
|| REGNO_REG_CLASS (REGNO (operands[2])) != FPUPPER_REGS
|| REGNO_REG_CLASS (REGNO (operands[3])) != FPUPPER_REGS
|| REGNO_REG_CLASS (REGNO (operands[4])) != FPUPPER_REGS
|| REGNO_REG_CLASS (REGNO (operands[5])) != FPUPPER_REGS))
return 0;
/* Passed. Operands are suitable for fmpysub. */
......
......@@ -3638,36 +3638,36 @@ for machine in $build $host $target; do
;;
hppa1.1-*-pro*)
target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
xm_file=pa/xm-papro.h
tmake_file=pa/t-pro
;;
hppa1.1-*-osf*)
target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/som.h pa/pa-osf.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
use_collect2=yes
;;
hppa1.1-*-rtems*)
target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
xm_file=pa/xm-papro.h
tmake_file=pa/t-pro
;;
hppa1.0-*-osf*)
tm_file="${tm_file} pa/som.h pa/pa-osf.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
use_collect2=yes
;;
hppa1.1-*-bsd*)
tm_file="${tm_file} pa/som.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
target_cpu_default="MASK_PA_11"
use_collect2=yes
;;
hppa1.0-*-bsd*)
tm_file="${tm_file} pa/som.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
use_collect2=yes
;;
hppa1.0-*-hpux7*)
tm_file="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h"
tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
......@@ -3678,7 +3678,7 @@ for machine in $build $host $target; do
use_collect2=yes
;;
hppa1.0-*-hpux8.0[0-2]*)
tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
......@@ -3692,7 +3692,7 @@ for machine in $build $host $target; do
;;
hppa1.1-*-hpux8.0[0-2]*)
target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
......@@ -3706,7 +3706,7 @@ for machine in $build $host $target; do
;;
hppa1.1-*-hpux8*)
target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
......@@ -3717,7 +3717,7 @@ for machine in $build $host $target; do
use_collect2=yes
;;
hppa1.0-*-hpux8*)
tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
......@@ -3729,7 +3729,7 @@ for machine in $build $host $target; do
;;
hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
float_format=i128
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
......@@ -3749,7 +3749,7 @@ for machine in $build $host $target; do
use_collect2=yes
;;
hppa1.0-*-hpux10*)
tm_file="${tm_file} pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
float_format=i128
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
......@@ -3770,7 +3770,7 @@ for machine in $build $host $target; do
;;
hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
float_format=i128
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
......@@ -3790,7 +3790,7 @@ for machine in $build $host $target; do
use_collect2=yes
;;
hppa1.0-*-hpux11*)
tm_file="${tm_file} pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
float_format=i128
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
......@@ -3810,7 +3810,7 @@ for machine in $build $host $target; do
;;
hppa1.1-*-hpux* | hppa2*-*-hpux*)
target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
......@@ -3821,7 +3821,7 @@ for machine in $build $host $target; do
use_collect2=yes
;;
hppa1.0-*-hpux*)
tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
......@@ -3833,7 +3833,7 @@ for machine in $build $host $target; do
;;
hppa1.1-*-hiux* | hppa2*-*-hiux*)
target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
......@@ -3844,7 +3844,7 @@ for machine in $build $host $target; do
use_collect2=yes
;;
hppa1.0-*-hiux*)
tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
......@@ -3855,7 +3855,7 @@ for machine in $build $host $target; do
use_collect2=yes
;;
hppa*-*-lites*)
tm_file="${tm_file} elfos.h pa/elf.h"
tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
target_cpu_default="MASK_PA_11"
use_collect2=yes
;;
......
......@@ -902,36 +902,36 @@ changequote([,])dnl
;;
hppa1.1-*-pro*)
target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
xm_file=pa/xm-papro.h
tmake_file=pa/t-pro
;;
hppa1.1-*-osf*)
target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/som.h pa/pa-osf.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
use_collect2=yes
;;
hppa1.1-*-rtems*)
target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
xm_file=pa/xm-papro.h
tmake_file=pa/t-pro
;;
hppa1.0-*-osf*)
tm_file="${tm_file} pa/som.h pa/pa-osf.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
use_collect2=yes
;;
hppa1.1-*-bsd*)
tm_file="${tm_file} pa/som.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
target_cpu_default="MASK_PA_11"
use_collect2=yes
;;
hppa1.0-*-bsd*)
tm_file="${tm_file} pa/som.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
use_collect2=yes
;;
hppa1.0-*-hpux7*)
tm_file="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h"
tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
......@@ -944,7 +944,7 @@ changequote([,])dnl
changequote(,)dnl
hppa1.0-*-hpux8.0[0-2]*)
changequote([,])dnl
tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
......@@ -960,7 +960,7 @@ changequote(,)dnl
hppa1.1-*-hpux8.0[0-2]*)
changequote([,])dnl
target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
......@@ -974,7 +974,7 @@ changequote([,])dnl
;;
hppa1.1-*-hpux8*)
target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
......@@ -985,7 +985,7 @@ changequote([,])dnl
use_collect2=yes
;;
hppa1.0-*-hpux8*)
tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
......@@ -997,7 +997,7 @@ changequote([,])dnl
;;
hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
float_format=i128
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
......@@ -1017,7 +1017,7 @@ changequote([,])dnl
use_collect2=yes
;;
hppa1.0-*-hpux10*)
tm_file="${tm_file} pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
float_format=i128
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
......@@ -1038,7 +1038,7 @@ changequote([,])dnl
;;
hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
float_format=i128
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
......@@ -1058,7 +1058,7 @@ changequote([,])dnl
use_collect2=yes
;;
hppa1.0-*-hpux11*)
tm_file="${tm_file} pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
float_format=i128
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
......@@ -1078,7 +1078,7 @@ changequote([,])dnl
;;
hppa1.1-*-hpux* | hppa2*-*-hpux*)
target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
......@@ -1089,7 +1089,7 @@ changequote([,])dnl
use_collect2=yes
;;
hppa1.0-*-hpux*)
tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
......@@ -1101,7 +1101,7 @@ changequote([,])dnl
;;
hppa1.1-*-hiux* | hppa2*-*-hiux*)
target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
......@@ -1112,7 +1112,7 @@ changequote([,])dnl
use_collect2=yes
;;
hppa1.0-*-hiux*)
tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
......@@ -1123,7 +1123,7 @@ changequote([,])dnl
use_collect2=yes
;;
hppa*-*-lites*)
tm_file="${tm_file} elfos.h pa/elf.h"
tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
target_cpu_default="MASK_PA_11"
use_collect2=yes
;;
......
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