Message ID | YZe7be/SUobW7Qek@toto.the-meissners.org |
---|---|
State | New |
Headers | show |
Series | Add zero cycle move support | expand |
Ping patch. | Date: Fri, 19 Nov 2021 09:57:49 -0500 | From: Michael Meissner <meissner@linux.ibm.com> | Subject: [PATCH 3/3] Use absolute switch table addresses for zero cycle moves. | Message-ID: <YZe7be/SUobW7Qek@toto.the-meissners.org> https://gcc.gnu.org/pipermail/gcc-patches/2021-November/585007.html Note, I will on-line through December 20th. I will be off-line December 21st through January 1st.
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 8531cef0337..dc942765828 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -4502,6 +4502,12 @@ rs6000_option_override_internal (bool global_init_p) && (rs6000_isa_flags_explicit & OPTION_MASK_P10_FUSION_ZERO_CYCLE) == 0) rs6000_isa_flags |= OPTION_MASK_P10_FUSION_ZERO_CYCLE; + /* If we enable zero cycle move fusion, also switch to absolute addresses in + switch tables. */ + if (TARGET_P10_FUSION && TARGET_P10_FUSION_ZERO_CYCLE + && !global_options_set.x_rs6000_relative_jumptables) + rs6000_relative_jumptables = 0; + /* Turn off vector pair/mma options on non-power10 systems. */ else if (!TARGET_POWER10 && TARGET_MMA) {