[PATCH] RISC-V: Fix fmv.x testcase for non-default --with-arch

Kito Cheng kito.cheng@gmail.com
Wed Sep 23 07:58:35 GMT 2026


Thanks, pushed to trunk :)

Ethan Y. C. Liang via Binutils <binutils@sourceware.org> 於
2026年9月22日週二 下午2:44寫道:
>
> On Tue, Sep 22, 2026 at 08:08:16AM +0200, Jan Beulich wrote:
> >
> > On 22.09.2026 04:59, Ethan Y. C. Liang via Binutils wrote:
> > > The testcase doesn't pass -march, so it inherits the configured default
> > > architecture, and fails with e.g. --with-arch=rv32e* (no a6) or
> > > --with-arch=rv32i_zfinx (".option arch, +f" conflicts).  It only checks
> > > that fmv.x.s/fmv.s.x are aliases of fmv.x.w/fmv.w.x, which doesn't
> > > depend on the base ISA.
> > >
> > > gas/ChangeLog:
> > >
> > >       * testsuite/gas/riscv/fmv.x.d: Pass -march=rv32i.
> > > ---
> > >  gas/testsuite/gas/riscv/fmv.x.d | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > Btw, when you send patches, you may want to Cc all respective maintainers, to
> > have an overall better chance of getting an approval indication back.
> >
> > Jan
> >
>
> Okay, thanks for the reminder.
>
> Ethan
>
> > > diff --git a/gas/testsuite/gas/riscv/fmv.x.d b/gas/testsuite/gas/riscv/fmv.x.d
> > > index 7392e0c0552..89023896068 100644
> > > --- a/gas/testsuite/gas/riscv/fmv.x.d
> > > +++ b/gas/testsuite/gas/riscv/fmv.x.d
> > > @@ -1,4 +1,4 @@
> > > -#as:
> > > +#as: -march=rv32i
> > >  #objdump: -dr
> > >
> > >  .*:[         ]+file format .*
> >


More information about the Binutils mailing list