[PATCH] RISC-V : Support bitmanip-0.93 ZBA/ZBB/ZBC instructions

Kuan-Lin Chen kuanlinchentw@gmail.com
Wed Mar 3 06:51:25 GMT 2021


Hi,

I updated the patch in the attached file.
This version fixed:
1. zext.h uses PACKW in rv64b.
2. ror accepts immediate operand as rori.
3. rorw accepts immediate operand as roriw.
4. zext.w can be used as a pseudo instruction for add.uw in rv64zba
5. test cases updated for above.

Andrew Waterman <andrew@sifive.com> 於 2021年2月26日 週五 上午6:52寫道:
>
> I don't believe the spec is in error.  zext.w is not in Zbb; it is a
> pseudoinstruction for add.uw in Zba.  This is consistent in one sense
> (Zba contains most of the instructions that help with uint32 on RV64)
> and inconsistent in another sense (Zbb contains most of the extension
> instructions), but it is what it is.
>
>
> On Thu, Feb 25, 2021 at 12:21 PM Jim Wilson <jimw@sifive.com> wrote:
> >
> > On Thu, Feb 25, 2021 at 12:44 AM Kuan-Lin Chen <kuanlinchentw@gmail.com>
> > wrote:
> >
> > > Btw, zext.w don't list on "Table 2.1: Zb* extensions instruction listings"
> > > of  bitmanip-draft.pdf (
> > > https://github.com/riscv/riscv-bitmanip/blob/master/bitmanip-draft.pdf).
> > > Maybe we can add zext.w on the table to avoid other people missing it.
> > >
> >
> > bitmanip-draft.pdf is probably out of date, but I checked a freshly built
> > one from source and it is still missing.  So I filed an issue against the
> > riscv-bitmanip project to point out the problem.
> >
> > Jim



-- 
Best regards,
Kuan-Lin Chen.
kuanlinchentw@gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-RISC-V-Support-bitmanip-0.93-ZBA-ZBB-ZBC-instruction.patch
Type: application/octet-stream
Size: 21534 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20210303/237c31b6/attachment-0001.obj>


More information about the Binutils mailing list