public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Segher Boessenkool <segher@kernel.crashing.org>
To: "Kewen.Lin" <linkw@linux.ibm.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>,
	David Edelsohn <dje.gcc@gmail.com>,
	Peter Bergner <bergner@linux.ibm.com>
Subject: Re: [PATCH] rs6000: Teach rs6000_opaque_type_invalid_use_p about gcall [PR108348]
Date: Mon, 16 Jan 2023 04:40:51 -0600	[thread overview]
Message-ID: <20230116104051.GG25951@gate.crashing.org> (raw)
In-Reply-To: <c6c52a5b-03c6-c50c-59b1-f41630d4b39f@linux.ibm.com>

Hi!

On Mon, Jan 16, 2023 at 05:20:56PM +0800, Kewen.Lin wrote:
> on 2023/1/16 16:49, Segher Boessenkool wrote:
> >> +/* { dg-require-effective-target powerpc_p9modulo_ok } */
> > 
> > Please use a saner selector?  If one doesn't exist yet, make a new one?
> > Something that just says "p9", not "modulo".
> 
> The has_arch_pwr9 looks not suitable here as it doesn't check
> the assembler behavior?

?  What assembler behaviour?

> Do you have some instruction in mind
> for being used as the tested instruction mnemonic like modsw?

It should not test *any* instruction?

Ah.  There is no *_ok wanted or needed at all.  You simply are required
to use a new enough binutils to fit your GCC.  During development you
probably want something, but that should not end up in the public trees.
You can always use -mcpu=power9.  If your toolchain is broken that will
throw some pretty obvious errors your way; this is fine.  A user can
always say -mcpu=power9.

The *_ok things should only be used for features that can be disabled
during configuration, or features that we *want* users to be able to
turn off (like FP, VMX, VSX, or HMT or QP float, that kind of thing).
That gives quite enough permutations to test already, we do not need to
create a whole bunch extra for no reason :-)

> Maybe later we can deprecate -mmodulo like we get rid of
> -mdirect-move, then we can rename p9modulo_ok to p9_ok here?  :)

We can (and should!) make that compiler flag a stub, yes.  But currently
it is used in places as a sneaky way to do -mcpu=power9.  So it is a bit
more work :-(


Segher

  reply	other threads:[~2023-01-16 10:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-16  8:33 Kewen.Lin
2023-01-16  8:49 ` Segher Boessenkool
2023-01-16  9:20   ` Kewen.Lin
2023-01-16 10:40     ` Segher Boessenkool [this message]
2023-01-16 13:05       ` Kewen.Lin
2023-01-16 15:24         ` Segher Boessenkool
2023-01-17  2:48           ` Kewen.Lin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230116104051.GG25951@gate.crashing.org \
    --to=segher@kernel.crashing.org \
    --cc=bergner@linux.ibm.com \
    --cc=dje.gcc@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=linkw@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).