-
Notifications
You must be signed in to change notification settings - Fork 855
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
Add support for new ARM softfloat/hardfloat distinction added in Go 1.22 #4177
Comments
I believe TinyGo already uses softfloat with |
Actually I would need both ARMv6 and ARMv7 with softfloat support for my usecase and it's more about supporting the same naming scheme that upstream Go uses since 1.22. I can have a try at implementing this as I got the chips here that require softfloat due to a lack of an FPU. The systems I'm looking to compile for are the Aspeed BMC chips. Both the 2500 and 2600 are missing the FPU. |
Right, I wasn't aware these cores existed. Thanks for clearing that up! |
Yep, that's also why this isn't anything high prio or blocking but might as well have it in to make use of the v7 features without an FPU. Still need to figure out which LLVM flags I'll need to set but otherwise the linked PR should already handle what I'm trying to achieve. |
Probably not, you need the correct LLVM feature flags. Those define the available instructions (and a few other things) that LLVM can use in the backend. Right now they are identical for ARMv7 softfloat and appear to include floating point instructions. |
That's why I wrote that I still need to figure out the flags 😅. |
When trying to compile a binary with the new ARM subtargets, e.g.
GOARM=6,softfloat
, tinygo bails out. The support for ARM added in #2260 would need to be extended for that.The text was updated successfully, but these errors were encountered: