[PATCH] RISC-V: map zext.h to pack/packw if Zbkb is enabled

Nelson Chu nelson@rivosinc.com
Mon Aug 5 06:17:56 GMT 2024


Sorry that inverted - It means zext.h can use pack[w] encodings, but
doesn't mean zext.h should be dumped as pack[w].

On Mon, Aug 5, 2024 at 2:16 PM Nelson Chu <nelson@rivosinc.com> wrote:

>
>
> On Mon, Aug 5, 2024 at 12:07 PM Hau Hsu <hau.hsu@sifive.com> wrote:
>
>> > ... since pack[w] is a superset of zext.h, it makes sense for zext.h to
>> use the pack[w] encoding in any situation that the full pack[w] instruction
>> is provided (which for now I guess just means Zbkb).
>>
>> Thus we have this patch.
>>
>> And if this patch is feasible, I'll send v2 that follows Jan's suggestion
>> to use alias instead of moving opcode table around.
>>
>
> It means zext.h can use pack[w] encodings, but doesn't mean pack[w] should
> be dumped as zext.h.
>
> Nelson
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20240805/517eeef7/attachment.htm>


More information about the Binutils mailing list