Skip to content
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

runtime: add softfloat for mips64? #14635

Open
minux opened this issue Mar 4, 2016 · 0 comments
Open

runtime: add softfloat for mips64? #14635

minux opened this issue Mar 4, 2016 · 0 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime.
Milestone

Comments

@minux
Copy link
Member

minux commented Mar 4, 2016

It seems most mips64 hardware don't have FPU, yet one of
our tests test/bench/go1 is very heavy on floating point, so
even on a 2GHz mips64 core, that test needs >10mins alone,
whereas the whole all.bash completes in ~30mins. The problem
is that we're using kernel to trap and emulate every single FP
instruction, which has extremely large overhead.

I'm wondering if we should introduce softfloat for MIPS64 like
what we did for GOARM=5.

Implementation problems aside, the biggest question is how
to enable or disable softfloat on the toolchain level? Should we
introduce a GOMIPS environment variable? Or should we just
always use insert calls to _sfloat before any consecutive FP
instructions, and make _sfloat does nothing if the system has
a FPU? I don't like the way GOARM works and I think it confuses
more than it helped. (Esp. modern ARM chips usually contain
FPU whereas very few MIPS64 chips contain FPU.)

/cc @cherrymui

@minux minux added this to the Unplanned milestone Mar 4, 2016
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime.
Projects
None yet
Development

No branches or pull requests

2 participants