public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: Dmitry Selyutin <ghostmansd@gmail.com>
Cc: lkcl <luke.leighton@gmail.com>,
	Binutils <binutils@sourceware.org>, Alan Modra <amodra@gmail.com>
Subject: Re: Teaching expression() to treat some operations specially
Date: Tue, 12 Jul 2022 13:39:36 +0200	[thread overview]
Message-ID: <488b7097-702b-cefa-ac3e-0c1c7c5ec145@suse.com> (raw)
In-Reply-To: <CAMqzjetddoeUfmfCbsV60Gn=aCvOkbk-nkk_9hmQ-UinRTJoww@mail.gmail.com>

On 12.07.2022 13:17, Dmitry Selyutin wrote:
> On Tue, Jul 12, 2022 at 1:44 PM Jan Beulich <jbeulich@suse.com> wrote:
>> why again can't you deal with *
>> there (converting the thing to an X_md<N> expression)?
> 
> Actually this is what we already do. :-)
> https://git.libre-soc.org/?p=binutils-gdb.git;a=blob;f=gas/config/tc-ppc.c;h=989d1a29a56a364cdfcce6b670f7466ff8eaaeea;hb=refs/heads/svp64-ng#l4238
> 
> There are two issues:
> 1. Handle register names in macros in a uniform way.

Note that from all I can tell equates (which is what I think you
mean) are a problem for expression in a wider sense. Things get
especially "interesting" once using transitive equates ...

Jan

> 2. Handle unary * operator.
> 
> The thread became a bit confusing due to these questions being
> somewhat related (e.g. whether these should be parsed in the same
> place).
> My point was, since * is indeed an unary operator, it's kind of
> natural for it to be handled at md_operator.
> However, we can stick to md_operand, no problems; so the second
> question is already solved.
> As for the first one, I'm now preparing a patch for it (it's also
> about md_operand, anyway).
> I attempt to make the code somewhat more straightforward and generic,
> and also handle X_md stuff at port's side.
> I'll update on this. Thank you for your help and advice!
> 


  reply	other threads:[~2022-07-12 11:39 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-09 16:47 Dmitry Selyutin
2022-07-11  1:01 ` Alan Modra
2022-07-11  2:33   ` lkcl
2022-07-11  3:08     ` Alan Modra
2022-07-11 14:28       ` Dmitry Selyutin
2022-07-11 19:13         ` Dmitry Selyutin
2022-07-11 23:37         ` Alan Modra
2022-07-12  4:18           ` Dmitry Selyutin
2022-07-12  6:25             ` Jan Beulich
2022-07-12  6:47               ` Dmitry Selyutin
2022-07-12  6:57                 ` Jan Beulich
2022-07-12  8:50                   ` Dmitry Selyutin
2022-07-12 10:44                     ` Jan Beulich
2022-07-12 11:17                       ` Dmitry Selyutin
2022-07-12 11:39                         ` Jan Beulich [this message]
2022-07-12  9:01                   ` Dmitry Selyutin
2022-07-12  6:58               ` Dmitry Selyutin

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=488b7097-702b-cefa-ac3e-0c1c7c5ec145@suse.com \
    --to=jbeulich@suse.com \
    --cc=amodra@gmail.com \
    --cc=binutils@sourceware.org \
    --cc=ghostmansd@gmail.com \
    --cc=luke.leighton@gmail.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).