public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/meissner/heads/work055)] Rework prefixed constant option setting.
@ 2021-06-16 20:12 Michael Meissner
0 siblings, 0 replies; only message in thread
From: Michael Meissner @ 2021-06-16 20:12 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:822a1ae821b9e3374804e674815c244d54fc8be2
commit 822a1ae821b9e3374804e674815c244d54fc8be2
Author: Michael Meissner <meissner@linux.ibm.com>
Date: Wed Jun 16 16:12:04 2021 -0400
Rework prefixed constant option setting.
gcc/
2021-06-16 Michael Meissner <meissner@linux.ibm.com>
* config/rs6000/rs6000.c (rs6000_option_override_internal):
Rework requiring -mprefixed for -mpower10-large-consts,
-mxxspltiw, -mxxspltidp, and -mxxsplti32dx.
Diff:
---
gcc/config/rs6000/rs6000.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index a5555045c1c..1e94ed7e438 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -4489,12 +4489,6 @@ rs6000_option_override_internal (bool global_init_p)
&& (rs6000_isa_flags_explicit & OPTION_MASK_P10_FUSION_2ADD) == 0)
rs6000_isa_flags |= OPTION_MASK_P10_FUSION_2ADD;
- if (TARGET_PREFIXED
- && (rs6000_isa_flags_explicit & OPTION_MASK_P10_LARGE_CONSTS) == 0)
- rs6000_isa_flags |= OPTION_MASK_P10_LARGE_CONSTS;
- else if (!TARGET_PREFIXED)
- rs6000_isa_flags &= ~OPTION_MASK_P10_LARGE_CONSTS;
-
/* Turn off vector pair/mma options on non-power10 systems. */
else if (!TARGET_POWER10 && TARGET_MMA)
{
@@ -4507,8 +4501,11 @@ rs6000_option_override_internal (bool global_init_p)
if (!TARGET_PCREL && TARGET_PCREL_OPT)
rs6000_isa_flags &= ~OPTION_MASK_PCREL_OPT;
- if (TARGET_POWER10 && TARGET_VSX)
+ if (TARGET_POWER10 && TARGET_VSX && TARGET_PREFIXED)
{
+ if ((rs6000_isa_flags_explicit & OPTION_MASK_P10_LARGE_CONSTS) == 0)
+ rs6000_isa_flags |= OPTION_MASK_P10_LARGE_CONSTS;
+
if ((rs6000_isa_flags_explicit & OPTION_MASK_XXSPLTI32DX) == 0)
rs6000_isa_flags |= OPTION_MASK_XXSPLTI32DX;
@@ -4519,7 +4516,8 @@ rs6000_option_override_internal (bool global_init_p)
rs6000_isa_flags |= OPTION_MASK_XXSPLTIDP;
}
else
- rs6000_isa_flags &= ~(OPTION_MASK_XXSPLTIW
+ rs6000_isa_flags &= ~(OPTION_MASK_P10_LARGE_CONSTS
+ | OPTION_MASK_XXSPLTIW
| OPTION_MASK_XXSPLTIDP
| OPTION_MASK_XXSPLTI32DX);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-16 20:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-16 20:12 [gcc(refs/users/meissner/heads/work055)] Rework prefixed constant option setting Michael Meissner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).