diff options
author | Keith Randall <khr@golang.org> | 2020-10-01 14:49:33 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2020-10-02 00:00:51 +0000 |
commit | fe2cfb74ba6352990f5b41260b99e80f78e4a90a (patch) | |
tree | eb0fe4e5c26627df259f080b14c2dc00750af8b2 /src/reflect/all_test.go | |
parent | 41df0e22184a0fcfb1e67e994c993239e9c2efc7 (diff) | |
download | go-fe2cfb74ba6352990f5b41260b99e80f78e4a90a.tar.gz go-fe2cfb74ba6352990f5b41260b99e80f78e4a90a.zip |
all: drop 387 support
My last 387 CL. So sad ... ... ... ... not!
Fixes #40255
Change-Id: I8d4ddb744b234b8adc735db2f7c3c7b6d8bbdfa4
Reviewed-on: https://go-review.googlesource.com/c/go/+/258957
Trust: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/reflect/all_test.go')
-rw-r--r-- | src/reflect/all_test.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/reflect/all_test.go b/src/reflect/all_test.go index ec87ec0c8a..0684eab973 100644 --- a/src/reflect/all_test.go +++ b/src/reflect/all_test.go @@ -4265,24 +4265,6 @@ var gFloat32 float32 func TestConvertNaNs(t *testing.T) { const snan uint32 = 0x7f800001 - - // Test to see if a store followed by a load of a signaling NaN - // maintains the signaling bit. The only platform known to fail - // this test is 386,GO386=387. The real test below will always fail - // if the platform can't even store+load a float without mucking - // with the bits. - gFloat32 = math.Float32frombits(snan) - runtime.Gosched() // make sure we don't optimize the store/load away - r := math.Float32bits(gFloat32) - if r != snan { - // This should only happen on 386,GO386=387. We have no way to - // test for 387, so we just make sure we're at least on 386. - if runtime.GOARCH != "386" { - t.Errorf("store/load of sNaN not faithful") - } - t.Skip("skipping test, float store+load not faithful") - } - type myFloat32 float32 x := V(myFloat32(math.Float32frombits(snan))) y := x.Convert(TypeOf(float32(0))) |