mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
arm: precise float64 software floating point
Adds softfloat64 to generic runtime (will be discarded by linker when unused) and adds test for it. I used the test to check the software code against amd64 hardware and then check the software code against the arm and its simulation of hardware. The latter should have been a no-op (testing against itself) but turned up a bug in 5c causing the vlrt.c routines to miscompile. These changes make the cmath, math, and strconv tests pass without any special accommodations for arm. R=ken2 CC=golang-dev https://golang.org/cl/2713042
This commit is contained in:
parent
e351533aab
commit
7c2b1597c6
7 changed files with 787 additions and 275 deletions
17
src/pkg/runtime/export_test.go
Normal file
17
src/pkg/runtime/export_test.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2010 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Export guts for testing.
|
||||
|
||||
package runtime
|
||||
|
||||
var Fadd64 = fadd64
|
||||
var Fsub64 = fsub64
|
||||
var Fmul64 = fmul64
|
||||
var Fdiv64 = fdiv64
|
||||
var F64to32 = f64to32
|
||||
var F32to64 = f32to64
|
||||
var Fcmp64 = fcmp64
|
||||
var Fintto64 = fintto64
|
||||
var F64toint = f64toint
|
||||
Loading…
Add table
Add a link
Reference in a new issue