-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RISC-V] NaN-box float arguments #93665
Conversation
…use that stub is unaware of floating-point argument sizes
…ing-point argument Floats passed in integer registers need to be NaN-boxed.
We did't meet this error. |
Good to hear. This PR should be neutral then, CopyStructToRegisters ORs with 0 on LA64, rest is RISCV-specific. |
PR ready to review, @jakobbotsch JIT part, @jkotas(?) VM. |
The VM change LGTM. @jakobbotsch Could you please review the JIT change? |
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue Details
This fixes System.Text.Json.Tests.Utf8JsonWriterTests.(WriteNumberValueSingle|WriteFloatValue) Part of #84834
|
NaN-box the arguments passed to CallDescrWorkerInternal because that stub is unaware of floating-point argument sizes
NaN-box floats in CopyStructToRegisters
Use variant of fmv.?.x appropriate for the size of the floating-point argument in function prolog
Floats passed in integer registers need to be NaN-boxed.
This fixes System.Text.Json.Tests.Utf8JsonWriterTests.(WriteNumberValueSingle|WriteFloatValue)
Part of #84834
cc @wscho77 @HJLeee @JongHeonChoi @t-mustafin @gbalykov @clamp03 @sirntar @yurai007
cc @shushanhf for changes in CopyStructToRegisters