From: Michiel Derhaeg <[email protected]>
The change was supposed to be part of r16-1685-g467fa6d257efde, but
somehow it was not included when that patch was applied upstream. It is
the only difference with the downstream version of that patch.
This fixes gcc.c-torture/execute/pr64006.c.
gcc/ChangeLog:
* config/arc/arc.cc (arc_init_reg_tables): Set the mode class of
CC_Vmode to C_MODE.
Signed-off-by: Michiel Derhaeg <[email protected]>
---
gcc/config/arc/arc.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/arc/arc.cc b/gcc/config/arc/arc.cc
index de6982f5c4c..e1a4aa6cfc2 100644
--- a/gcc/config/arc/arc.cc
+++ b/gcc/config/arc/arc.cc
@@ -1794,7 +1794,7 @@ arc_init_reg_tables (void)
/* mode_class hasn't been initialized yet for EXTRA_CC_MODES, so
we must explicitly check for them here. */
if (i == (int) CCmode || i == (int) CC_ZNmode || i == (int) CC_Zmode
- || i == (int) CC_Cmode
+ || i == (int) CC_Cmode || i == (int) CC_Vmode
|| i == CC_FP_GTmode || i == CC_FP_GEmode || i == CC_FP_ORDmode
|| i == CC_FPUmode || i == CC_FPUEmode || i == CC_FPU_UNEQmode)
arc_mode_class[i] = 1 << (int) C_MODE;
--
2.54.0