RFR: 8347981: RISC-V: Add Zfa zli imm loads [v2]
Fei Yang
fyang at openjdk.org
Tue Jan 21 09:55:41 UTC 2025
On Tue, 21 Jan 2025 02:36:32 GMT, Fei Yang <fyang at openjdk.org> wrote:
>> Same, my bad. (guarantee in zli_s on that Rs is uimm5.)
>>
>> As we already an guarantee, maybe assert(can_zfa..) ?
>
> How about we do this directly on the callsite?
>
> int Rs = -1;
> if (can_zfa_zli_float(imm, &Rs)) {
> _fli_s(Rd, Rs);
> }
Or can we use `zfa_zli_lookup_float/double` instead here?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23171#discussion_r1923401155
More information about the hotspot-dev
mailing list