RFR: 8347981: RISC-V: Add Zfa zli imm loads [v2]

Robbin Ehn rehn at openjdk.org
Wed Jan 22 11:13:35 UTC 2025


On Tue, 21 Jan 2025 09:53:03 GMT, Fei Yang <fyang at openjdk.org> wrote:

>> 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?

Then we loose the assert on UseZfa and we still need to cast to bits, so basically copy out the code from can_zfa_zli_float.

I'll merge with zfh and try to address your concerns.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/23171#discussion_r1925139779


More information about the hotspot-dev mailing list