Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: request softfloat for all platform (not only mips) #32760
Could you give some details why soft float on x86 would be useful?
The minimum requirement due to 64bit atomics for Go is Pentium MMX on x86 and thereby all supported chips should have floating point support in hardware.
arm has softfloat support for supported arm versions that do not have hardware support. See https://github.com/golang/go/wiki/GoArm
Go gc does not support RISC-V yet. Once it does soft float for RISC-V if not yet implemented can be considered. Which leaves the question why soft float for platforms that always support hardware float operations (x86 as mentioned) should be supported?
I can see not much demand/use for soft float for e.g. x86 yet and its something that needs to be kept maintained and tested.
Once RISC-V is supported I think it would be better to open a specific issue about soft float support for RISC-V if not present. But I assume that is more likely to trigger an implementation with compiler intrinsics and asm code to have better performance.
For some cross-architecture solutions, the most hacked solution is to translate the source architecture machine language to the target architecture machine language, and if the source machine language uses floating point instructions, it will cause a lot of trouble for the translation. It's my personal interst.
I understand that this is not your current focus, and most people doesn't need it. Thank you for your reply! :)