From de5bcff3bcce9ccb415e354415825c2ad7f03316 Mon Sep 17 00:00:00 2001 From: Robert Suchanek Date: Wed, 28 Jan 2015 09:44:39 +0000 Subject: [PATCH] Prohibit vector modes in accumulators. gcc/ * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators for all vector modes. From-SVN: r220200 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/mips.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 168d255b54d..90adcd684e7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-01-28 Robert Suchanek + + * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators + for all vector modes. + 2015-01-28 Jakub Jelinek PR bootstrap/64612 diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 443a71216e7..1733457e731 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -12131,7 +12131,9 @@ mips_hard_regno_mode_ok_p (unsigned int regno, machine_mode mode) return size >= MIN_UNITS_PER_WORD && size <= UNITS_PER_FPREG; } + /* Don't allow vector modes in accumulators. */ if (ACC_REG_P (regno) + && !VECTOR_MODE_P (mode) && (INTEGRAL_MODE_P (mode) || ALL_FIXED_POINT_MODE_P (mode))) { if (MD_REG_P (regno)) -- 2.30.2