]> gcc.gnu.org Git - gcc.git/commitdiff
rs6000: Fix cpu selection w/ isel (PR100108)
authorSegher Boessenkool <segher@kernel.crashing.org>
Tue, 20 Apr 2021 12:00:50 +0000 (12:00 +0000)
committerSegher Boessenkool <segher@kernel.crashing.org>
Tue, 20 Apr 2021 13:28:02 +0000 (13:28 +0000)
There are various non-IBM CPUs with isel as well, so it is easiest if we
just don't consider that flag here (it is not needed).

2021-04-20  Segher Boessenkool  <segher@kernel.crashing.org>

PR target/100108
* config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
OPTION_MASK_ISEL.

gcc/config/rs6000/rs6000.c

index 48b8efd732b251c059628096314848305deb0c0b..844fee88cf3c1407fae35b833cc1f97e5898765a 100644 (file)
@@ -5765,7 +5765,7 @@ rs6000_machine_from_flags (void)
   HOST_WIDE_INT flags = rs6000_isa_flags;
 
   /* Disable the flags that should never influence the .machine selection.  */
-  flags &= ~(OPTION_MASK_PPC_GFXOPT | OPTION_MASK_PPC_GPOPT);
+  flags &= ~(OPTION_MASK_PPC_GFXOPT | OPTION_MASK_PPC_GPOPT | OPTION_MASK_ISEL);
 
   if ((flags & (ISA_3_1_MASKS_SERVER & ~ISA_3_0_MASKS_SERVER)) != 0)
     return "power10";
This page took 0.095353 seconds and 5 git commands to generate.