aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/nds32
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2018-08-02 22:39:59 +0000
committerJeff Law <law@gcc.gnu.org>2018-08-02 16:39:59 -0600
commit65e8746285c96f66653fe19d69f1880a400bdbb0 (patch)
tree3c741572febf94789ee04e248dbfec94bf30b93a /gcc/config/nds32
parent653fee1961981f1fee3a0ced7ac4d36b4cec2064 (diff)
downloadgcc-65e8746285c96f66653fe19d69f1880a400bdbb0.zip
gcc-65e8746285c96f66653fe19d69f1880a400bdbb0.tar.gz
gcc-65e8746285c96f66653fe19d69f1880a400bdbb0.tar.bz2
nds32.c (nds32_hard_regno_mode_ok): Replace > with >=.
* config/nds32/nds32.c (nds32_hard_regno_mode_ok): Replace > with >=. * df-problems.c (df_remove_dead_eq_notes): Replace > with >=. * dwarf2out.c (mem_loc_descriptor): Replace > with >=. * lra-constraints.c (spill_hard_reg_in_range): Replace <= with <. * lra-remat.c (call_used_input_regno_present_p): Replace <= with <. From-SVN: r263280
Diffstat (limited to 'gcc/config/nds32')
-rw-r--r--gcc/config/nds32/nds32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/nds32/nds32.c b/gcc/config/nds32/nds32.c
index 85a2986..721135e 100644
--- a/gcc/config/nds32/nds32.c
+++ b/gcc/config/nds32/nds32.c
@@ -4342,7 +4342,7 @@ nds32_hard_regno_nregs (unsigned regno ATTRIBUTE_UNUSED,
static bool
nds32_hard_regno_mode_ok (unsigned int regno, machine_mode mode)
{
- if (regno > FIRST_PSEUDO_REGISTER)
+ if (regno >= FIRST_PSEUDO_REGISTER)
return true;
if ((TARGET_FPU_SINGLE || TARGET_FPU_DOUBLE) && NDS32_IS_FPR_REGNUM (regno))