aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2007-01-02 06:34:09 +0000
committerEric Christopher <echristo@gcc.gnu.org>2007-01-02 06:34:09 +0000
commitd8934cf1e3a5e6cfe4d85841996e28555d8aea76 (patch)
tree9b43610b38c694e1bbd87bf850fc9db8924db680 /gcc/config
parentcf06e5c146b311b9a1f3109f2047a14ee458304d (diff)
downloadgcc-d8934cf1e3a5e6cfe4d85841996e28555d8aea76.zip
gcc-d8934cf1e3a5e6cfe4d85841996e28555d8aea76.tar.gz
gcc-d8934cf1e3a5e6cfe4d85841996e28555d8aea76.tar.bz2
mips.c (mips_regno_mode_ok_for_base_p): Use HARD_REGISTER_NUM_P.
2007-01-01 Eric Christopher <echristo@apple.com> * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use HARD_REGISTER_NUM_P. From-SVN: r120334
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/mips/mips.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 9b4746f..1942123 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -1447,7 +1447,7 @@ mips_symbolic_constant_p (rtx x, enum mips_symbol_type *symbol_type)
int
mips_regno_mode_ok_for_base_p (int regno, enum machine_mode mode, int strict)
{
- if (regno >= FIRST_PSEUDO_REGISTER)
+ if (!HARD_REGISTER_NUM_P (regno))
{
if (!strict)
return true;
@@ -3103,17 +3103,17 @@ mips_relational_operand_ok_p (enum rtx_code code, rtx cmp1)
comparison. */
static bool
-mips_canonicalize_comparison (enum rtx_code *code, rtx *cmp1,
+mips_canonicalize_comparison (enum rtx_code *code, rtx *cmp1,
enum machine_mode mode)
{
HOST_WIDE_INT original, plus_one;
if (GET_CODE (*cmp1) != CONST_INT)
return false;
-
+
original = INTVAL (*cmp1);
plus_one = trunc_int_for_mode ((unsigned HOST_WIDE_INT) original + 1, mode);
-
+
switch (*code)
{
case LE:
@@ -3124,7 +3124,7 @@ mips_canonicalize_comparison (enum rtx_code *code, rtx *cmp1,
return true;
}
break;
-
+
case LEU:
if (plus_one != 0)
{
@@ -3133,11 +3133,11 @@ mips_canonicalize_comparison (enum rtx_code *code, rtx *cmp1,
return true;
}
break;
-
+
default:
return false;
}
-
+
return false;
}
@@ -4667,8 +4667,8 @@ mips_use_ins_ext_p (rtx op, rtx size, rtx position)
len = INTVAL (size);
pos = INTVAL (position);
-
- if (len <= 0 || len >= GET_MODE_BITSIZE (GET_MODE (op))
+
+ if (len <= 0 || len >= GET_MODE_BITSIZE (GET_MODE (op))
|| pos < 0 || pos + len > GET_MODE_BITSIZE (GET_MODE (op)))
return false;
@@ -4824,7 +4824,7 @@ override_options (void)
only one right answer here. */
if (TARGET_64BIT && TARGET_DOUBLE_FLOAT && !TARGET_FLOAT64)
error ("unsupported combination: %s", "-mgp64 -mfp32 -mdouble-float");
- else if (!TARGET_64BIT && TARGET_FLOAT64
+ else if (!TARGET_64BIT && TARGET_FLOAT64
&& !(ISA_HAS_MXHC1 && mips_abi == ABI_32))
error ("-mgp32 and -mfp64 can only be combined if the target"
" supports the mfhc1 and mthc1 instructions");
@@ -6945,7 +6945,7 @@ mips_expand_prologue (void)
{
rtx offset = GEN_INT (cfun->machine->frame.args_size);
if (SMALL_OPERAND (cfun->machine->frame.args_size))
- RTX_FRAME_RELATED_P
+ RTX_FRAME_RELATED_P
(emit_insn (gen_add3_insn (hard_frame_pointer_rtx,
stack_pointer_rtx,
offset))) = 1;
@@ -6958,7 +6958,7 @@ mips_expand_prologue (void)
MIPS_PROLOGUE_TEMP (Pmode)));
mips_set_frame_expr
(gen_rtx_SET (VOIDmode, hard_frame_pointer_rtx,
- plus_constant (stack_pointer_rtx,
+ plus_constant (stack_pointer_rtx,
cfun->machine->frame.args_size)));
}
}
@@ -7685,7 +7685,7 @@ mips_cannot_change_mode_class (enum machine_mode from,
/* gcc assumes that each word of a multiword register can be accessed
individually using SUBREGs. This is not true for floating-point
- registers if they are bigger than a word. */
+ registers if they are bigger than a word. */
if (UNITS_PER_FPREG > UNITS_PER_WORD
&& GET_MODE_SIZE (from) > UNITS_PER_WORD
&& GET_MODE_SIZE (to) < UNITS_PER_FPREG