On Mon, 2020-04-27 at 15:46 -0400, Michael Meissner via Gcc-patches wrote: > This patch adds supports in target-supports.exp for -mpcrel and > -mprefixed. > > Patch #1 of 7.
Hi Subject: Re: [PATCH] PowerPC -mcpu=future Patch 1 of 7, add target supports for -mpcrel and -mprefixed Squish that subject line down a bit if possible. stl Re: [PATCH 1/7] PowerPC add target supports for -mpcrel and -mprefixed Can include the "for -mcpu=future" blurb as part of the inline description if so warranted. > > 2020-04-27 Michael Meissner <meiss...@linux.ibm.com> > > * lib/target-supports.exp > (check_effective_target_powerpc_pcrel): > New target for PowerPC -mcpu=future support. > (check_effective_target_powerpc_prefixed_addr): New target for > PowerPC -mcpu=future support. > > This patch is needed by some of the following patches. > > --- /tmp/ulXyBK_target-supports.exp 2020-04-27 13:45:24.507304508 > -0400 > +++ gcc/testsuite/lib/target-supports.exp 2020-04-27 > 13:45:10.164498029 -0400 > @@ -2189,6 +2189,23 @@ proc check_p9modulo_hw_available { } { > }] > } > > +# Return 1 if the target generates PC-relative instructions > automatically > +proc check_effective_target_powerpc_pcrel { } { > + return [check_no_messages_and_pattern powerpc_pcrel \ > + {\mpld\M.*[@]pcrel} assembly { > + static long s; > + long *p = &s; > + long foo (void) { return s; } > + } {-O2 -mcpu=future}] > +} > + > +# Return 1 if the target generates prefixed instructions > automatically > +proc check_effective_target_powerpc_prefixed_addr { } { > + return [check_no_messages_and_pattern powerpc_prefixed_addr \ > + {\mpld\M} assembly { > + long foo (long *p) { return p[0x12345]; } > + } {-O2 -mcpu=future}] > +} The syntax matches existing check_effective_target_powerpc test stanzas. lgtm. thanks, -Will > # Return 1 if the target supports executing FUTURE instructions, 0 > otherwise. > # Cache the result. It is assumed that if a simulator does not > support the >