]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/gc: skip TestFP on mips64x
authorCherry Zhang <cherryyz@google.com>
Thu, 5 May 2016 06:47:37 +0000 (23:47 -0700)
committerCherry Zhang <cherryyz@google.com>
Thu, 5 May 2016 16:14:47 +0000 (16:14 +0000)
The legacy mips64 backend doesn't handle large uint->float conversion
correctly. See #15552.

Change-Id: I84ceeaa95cc4e85f09cc46dfb30ab5d151f6b205
Reviewed-on: https://go-review.googlesource.com/22800
Reviewed-by: Minux Ma <minux@golang.org>
src/cmd/compile/internal/gc/ssa_test.go

index c89917df88c2685ab577bdc38948db5b2d368983..8a233eafe0d6d7d5d330c893c2e0ff270d2c1804 100644 (file)
@@ -57,7 +57,12 @@ func TestArithmetic(t *testing.T) {
 }
 
 // TestFP tests that both backends have the same result for floating point expressions.
-func TestFP(t *testing.T) { runTest(t, "fp_ssa.go") }
+func TestFP(t *testing.T) {
+       if runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" {
+               t.Skip("legacy mips64 compiler doesn't handle uint->float conversion correctly (issue 15552)")
+       }
+       runTest(t, "fp_ssa.go")
+}
 
 // TestArithmeticBoundary tests boundary results for arithmetic operations.
 func TestArithmeticBoundary(t *testing.T) { runTest(t, "arithBoundary_ssa.go") }