[PATCH] RISC-V: map zext.h to pack/packw if Zbkb is enabled
Hau Hsu
hau.hsu@sifive.com
Mon Aug 5 12:48:19 GMT 2024
Oh you are right. Or users will get confused why their zext.h are changed to pack.
Thanks for reminding me that.
Hau Hsu
> On Aug 5, 2024, at 2:17 PM, Nelson Chu <nelson@rivosinc.com> wrote:
>
> 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 <mailto:nelson@rivosinc.com>> wrote:
>>
>>
>> On Mon, Aug 5, 2024 at 12:07 PM Hau Hsu <hau.hsu@sifive.com <mailto: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/ae4dfddb/attachment.htm>
More information about the Binutils
mailing list