use E_*mode instead of just *mode
authorAlexandre Oliva <oliva@adacore.com>
Wed, 16 Sep 2020 21:15:01 +0000 (18:15 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 16 Sep 2020 21:15:01 +0000 (18:15 -0300)
g++ 4.8.5 rejected cases with SFmode and DFmode, presumably due to
some bug in the constexpr implementation.

for  gcc/ChangeLog

* config/rs6000/rs6000.c (have_compare_and_set_mask): Use
E_*mode in cases.

gcc/config/rs6000/rs6000.c

index 640fc405dd4fd0b559f3ded919348570c34628db..6f204ca202a334848077b55750c74cd4297b10f0 100644 (file)
@@ -15190,8 +15190,8 @@ have_compare_and_set_mask (machine_mode mode)
 {
   switch (mode)
     {
-    case SFmode:
-    case DFmode:
+    case E_SFmode:
+    case E_DFmode:
       return TARGET_P9_MINMAX;
 
     default: