public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Nelson Chu <nelson@rivosinc.com>
To: Jeff Law <jeffreyalaw@gmail.com>
Cc: binutils@sourceware.org
Subject: Re: [committed] RISC-V: Make g imply zmmul extension.
Date: Fri, 16 Sep 2022 11:26:30 +0800	[thread overview]
Message-ID: <CAPpQWtA4iTqokiuNgdfdwt8DMvTTLiO1Tm5DUSNv6jyZrQEZUA@mail.gmail.com> (raw)
In-Reply-To: <d6038672-faa2-9068-1c0f-434de294ba0e@gmail.com>

On Fri, Sep 16, 2022 at 10:34 AM Jeff Law via Binutils
<binutils@sourceware.org> wrote:
>
>
> On 9/15/22 19:39, Nelson Chu wrote:
> > bfd/
> >       * elfxx-riscv.c (riscv_implicit_subset): Moved entry of m after g,
> >       so that g can imply zmmul.
> > gas/
> >       * testsuite/gas/riscv/attribute-01.d: Updated.
> >       * testsuite/gas/riscv/attribute-02.d: Likewise.
> >       * testsuite/gas/riscv/attribute-03.d: Likewise.
> >       * testsuite/gas/riscv/attribute-04.d: Likewise.
> >       * testsuite/gas/riscv/attribute-05.d: Likewise.
> >       * testsuite/gas/riscv/attribute-10.d: Likewise.
> >       * testsuite/gas/riscv/march-imply-g.d: Likewise.
> >       * testsuite/gas/riscv/march-imply-unsupported.d: Likewise.
>
> Does this happen to fix this kind of failure that started showing up a
> week or two ago?
>
> /tmp/ccdAErP7.s:6522: Error: unrecognized opcode `mul a5,a4,a5',
> extension `m' or `zmmul' required

I get the same error message if I just assemble files with
-march=rv32/64g, or just use the default rv64g arch setting.  I
remember gcc should always pass the expanded imafd for g to assembler,
so the errors won't happen.  This error should only happen when we set
g for architecture string.  Hope the patch can fix the problem you
mentioned, it seems like the same as what I meet.

> I started chasing it down and concluded it likely wasn't the compiler,
> but couldn't take it further before covid knocked me out.  I'm just
> starting to try and catch up on things today...
>

Glad to hear you recovered :)

Nelson

>
> jeff
>

  reply	other threads:[~2022-09-16  3:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-16  1:39 Nelson Chu
2022-09-16  2:33 ` Jeff Law
2022-09-16  3:26   ` Nelson Chu [this message]
2022-09-16  3:30     ` Jeff Law
2022-09-16  4:17     ` Jeff Law
2022-09-16 18:28   ` Tsukasa OI

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=CAPpQWtA4iTqokiuNgdfdwt8DMvTTLiO1Tm5DUSNv6jyZrQEZUA@mail.gmail.com \
    --to=nelson@rivosinc.com \
    --cc=binutils@sourceware.org \
    --cc=jeffreyalaw@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).