diff options
author | Jeff Law <law@gcc.gnu.org> | 1993-04-03 18:00:34 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1993-04-03 18:00:34 -0700 |
commit | e5e28962004a0eca33049c5b00e0a40e3e6ec964 (patch) | |
tree | 883dcf4367626f6b8f2de0d93608e286898f4cbc | |
parent | 2c9ce2effc5b3946371d14fe7ae093d6ac1bc112 (diff) | |
download | gcc-e5e28962004a0eca33049c5b00e0a40e3e6ec964.zip gcc-e5e28962004a0eca33049c5b00e0a40e3e6ec964.tar.gz gcc-e5e28962004a0eca33049c5b00e0a40e3e6ec964.tar.bz2 |
* pa.c (hppa_legitimize_address): Use Pmode consistently.
From-SVN: r3995
-rw-r--r-- | gcc/config/pa/pa.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 14142ec7..365f3c8 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -644,27 +644,27 @@ hppa_legitimize_address (x, oldx, mode) && GET_CODE (XEXP (x, 0)) == SYMBOL_REF) { rtx const_part = gen_rtx (CONST, VOIDmode, - gen_rtx (PLUS, SImode, + gen_rtx (PLUS, Pmode, XEXP (x, 0), GEN_INT (newoffset))); rtx tmp_reg - = force_reg (SImode, - gen_rtx (HIGH, SImode, const_part)); + = force_reg (Pmode, + gen_rtx (HIGH, Pmode, const_part)); ptr_reg - = force_reg (SImode, - gen_rtx (LO_SUM, SImode, + = force_reg (Pmode, + gen_rtx (LO_SUM, Pmode, tmp_reg, const_part)); } else { if (! VAL_14_BITS_P (newoffset)) - int_part = force_reg (SImode, GEN_INT (newoffset)); + int_part = force_reg (Pmode, GEN_INT (newoffset)); else int_part = GEN_INT (newoffset); - ptr_reg = force_reg (SImode, - gen_rtx (PLUS, SImode, - force_reg (SImode, XEXP (x, 0)), + ptr_reg = force_reg (Pmode, + gen_rtx (PLUS, Pmode, + force_reg (Pmode, XEXP (x, 0)), int_part)); } return plus_constant (ptr_reg, offset - newoffset); @@ -675,12 +675,12 @@ hppa_legitimize_address (x, oldx, mode) { int val = INTVAL (XEXP (XEXP (x, 0), 1)); rtx reg1, reg2; - reg1 = force_reg (SImode, force_operand (XEXP (x, 1), 0)); - reg2 = force_reg (SImode, + reg1 = force_reg (Pmode, force_operand (XEXP (x, 1), 0)); + reg2 = force_reg (Pmode, force_operand (XEXP (XEXP (x, 0), 0), 0)); - return force_reg (SImode, - gen_rtx (PLUS, SImode, - gen_rtx (MULT, SImode, reg2, + return force_reg (Pmode, + gen_rtx (PLUS, Pmode, + gen_rtx (MULT, Pmode, reg2, GEN_INT (val)), reg1)); } |