For thing that get a INTVAL result, make their type HOST_WIDE_INT.
This commit is contained in:
parent
97da8b0449
commit
4a7a5c53dd
32
gnu/dist/gcc4/gcc/config/pa/pa.c
vendored
32
gnu/dist/gcc4/gcc/config/pa/pa.c
vendored
@ -851,9 +851,9 @@ hppa_legitimize_address (rtx x, rtx oldx ATTRIBUTE_UNUSED,
|
||||
|| GET_CODE (XEXP (x, 0)) == REG))
|
||||
{
|
||||
rtx int_part, ptr_reg;
|
||||
int newoffset;
|
||||
int offset = INTVAL (XEXP (x, 1));
|
||||
int mask;
|
||||
HOST_WIDE_INT newoffset;
|
||||
HOST_WIDE_INT offset = INTVAL (XEXP (x, 1));
|
||||
HOST_WIDE_INT mask;
|
||||
|
||||
mask = (GET_MODE_CLASS (mode) == MODE_FLOAT
|
||||
? (TARGET_PA_20 ? 0x3fff : 0x1f) : 0x3fff);
|
||||
@ -907,7 +907,7 @@ hppa_legitimize_address (rtx x, rtx oldx ATTRIBUTE_UNUSED,
|
||||
|| GET_CODE (XEXP (x, 1)) == SUBREG)
|
||||
&& GET_CODE (XEXP (x, 1)) != CONST)
|
||||
{
|
||||
int val = INTVAL (XEXP (XEXP (x, 0), 1));
|
||||
HOST_WIDE_INT val = INTVAL (XEXP (XEXP (x, 0), 1));
|
||||
rtx reg1, reg2;
|
||||
|
||||
reg1 = XEXP (x, 1);
|
||||
@ -986,7 +986,7 @@ hppa_legitimize_address (rtx x, rtx oldx ATTRIBUTE_UNUSED,
|
||||
&& INTVAL (XEXP (idx, 1)) % INTVAL (XEXP (XEXP (idx, 0), 1)) == 0)
|
||||
{
|
||||
/* Divide the CONST_INT by the scale factor, then add it to A. */
|
||||
int val = INTVAL (XEXP (idx, 1));
|
||||
HOST_WIDE_INT val = INTVAL (XEXP (idx, 1));
|
||||
|
||||
val /= INTVAL (XEXP (XEXP (idx, 0), 1));
|
||||
reg1 = XEXP (XEXP (idx, 0), 0);
|
||||
@ -1009,7 +1009,7 @@ hppa_legitimize_address (rtx x, rtx oldx ATTRIBUTE_UNUSED,
|
||||
&& INTVAL (XEXP (idx, 1)) <= 4096
|
||||
&& INTVAL (XEXP (idx, 1)) >= -4096)
|
||||
{
|
||||
int val = INTVAL (XEXP (XEXP (idx, 0), 1));
|
||||
HOST_WIDE_INT val = INTVAL (XEXP (XEXP (idx, 0), 1));
|
||||
rtx reg1, reg2;
|
||||
|
||||
reg1 = force_reg (Pmode, gen_rtx_PLUS (Pmode, base, XEXP (idx, 1)));
|
||||
@ -1093,7 +1093,7 @@ hppa_legitimize_address (rtx x, rtx oldx ATTRIBUTE_UNUSED,
|
||||
&& GET_CODE (XEXP (XEXP (x, 0), 1)) == CONST_INT
|
||||
&& shadd_constant_p (INTVAL (XEXP (XEXP (x, 0), 1))))
|
||||
{
|
||||
int val = INTVAL (XEXP (XEXP (x, 0), 1));
|
||||
HOST_WIDE_INT val = INTVAL (XEXP (XEXP (x, 0), 1));
|
||||
rtx reg1, reg2;
|
||||
|
||||
reg1 = XEXP (x, 1);
|
||||
@ -2516,8 +2516,8 @@ find_addr_reg (rtx addr)
|
||||
const char *
|
||||
output_block_move (rtx *operands, int size_is_constant ATTRIBUTE_UNUSED)
|
||||
{
|
||||
int align = INTVAL (operands[5]);
|
||||
unsigned long n_bytes = INTVAL (operands[4]);
|
||||
HOST_WIDE_INT align = INTVAL (operands[5]);
|
||||
unsigned HOST_WIDE_INT n_bytes = INTVAL (operands[4]);
|
||||
|
||||
/* We can't move more than a word at a time because the PA
|
||||
has no longer integer move insns. (Could use fp mem ops?) */
|
||||
@ -2644,8 +2644,8 @@ static int
|
||||
compute_movmem_length (rtx insn)
|
||||
{
|
||||
rtx pat = PATTERN (insn);
|
||||
unsigned int align = INTVAL (XEXP (XVECEXP (pat, 0, 7), 0));
|
||||
unsigned long n_bytes = INTVAL (XEXP (XVECEXP (pat, 0, 6), 0));
|
||||
unsigned HOST_WIDE_INT align = INTVAL (XEXP (XVECEXP (pat, 0, 7), 0));
|
||||
unsigned HOST_WIDE_INT n_bytes = INTVAL (XEXP (XVECEXP (pat, 0, 6), 0));
|
||||
unsigned int n_insns = 0;
|
||||
|
||||
/* We can't move more than four bytes at a time because the PA
|
||||
@ -2680,8 +2680,8 @@ compute_movmem_length (rtx insn)
|
||||
const char *
|
||||
output_block_clear (rtx *operands, int size_is_constant ATTRIBUTE_UNUSED)
|
||||
{
|
||||
int align = INTVAL (operands[3]);
|
||||
unsigned long n_bytes = INTVAL (operands[2]);
|
||||
HOST_WIDE_INT align = INTVAL (operands[3]);
|
||||
unsigned HOST_WIDE_INT n_bytes = INTVAL (operands[2]);
|
||||
|
||||
/* We can't clear more than a word at a time because the PA
|
||||
has no longer integer move insns. */
|
||||
@ -2786,8 +2786,8 @@ static int
|
||||
compute_clrmem_length (rtx insn)
|
||||
{
|
||||
rtx pat = PATTERN (insn);
|
||||
unsigned int align = INTVAL (XEXP (XVECEXP (pat, 0, 4), 0));
|
||||
unsigned long n_bytes = INTVAL (XEXP (XVECEXP (pat, 0, 3), 0));
|
||||
unsigned HOST_WIDE_INT align = INTVAL (XEXP (XVECEXP (pat, 0, 4), 0));
|
||||
unsigned HOST_WIDE_INT n_bytes = INTVAL (XEXP (XVECEXP (pat, 0, 3), 0));
|
||||
unsigned int n_insns = 0;
|
||||
|
||||
/* We can't clear more than a word at a time because the PA
|
||||
@ -5442,7 +5442,7 @@ emit_hpdiv_const (rtx *operands, int unsignedp)
|
||||
const char *
|
||||
output_div_insn (rtx *operands, int unsignedp, rtx insn)
|
||||
{
|
||||
int divisor;
|
||||
HOST_WIDE_INT divisor;
|
||||
|
||||
/* If the divisor is a constant, try to use one of the special
|
||||
opcodes .*/
|
||||
|
Loading…
Reference in New Issue
Block a user