]> Cypherpunks.ru repositories - gostls13.git/commitdiff
test: fix nosplit.go, fixedbugs/issue11656.go and skip two tests for mips64{,le}
authorYao Zhang <lunaria21@gmail.com>
Mon, 28 Sep 2015 21:30:32 +0000 (17:30 -0400)
committerMinux Ma <minux@golang.org>
Thu, 12 Nov 2015 04:52:31 +0000 (04:52 +0000)
Skip fixedbugs/issue10607.go because external linking is not supported
yet.

Skip nilptr3.go because of issue #9058 (same as ppc64).

Change-Id: Ib3dfbd9a03ee4052871cf57c74b3cc5e745e1f80
Reviewed-on: https://go-review.googlesource.com/14461
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Minux Ma <minux@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

test/fixedbugs/issue10607.go
test/fixedbugs/issue11656.go
test/nilptr3.go
test/nosplit.go

index bf527d0f772cbc0a90ecfc2fa7cc566adb8d3b9e..a1a65a75df4d69455217213514b9368e14e11596 100644 (file)
@@ -1,4 +1,4 @@
-// +build linux,!ppc64,!ppc64le
+// +build linux,!ppc64,!ppc64le,!mips64,!mips64le
 // run
 
 // Copyright 2015 The Go Authors. All rights reserved.
index bbedb43bc66aac2957816e5a0ad5040bd12fdca8..565e796ed016cd683c2c4dffaa93a6a17d730eec 100644 (file)
@@ -61,6 +61,10 @@ func f(n int) {
                binary.BigEndian.PutUint32(ill, 0x7fe00008) // trap
        case "ppc64le":
                binary.LittleEndian.PutUint32(ill, 0x7fe00008) // trap
+       case "mips64":
+               binary.BigEndian.PutUint32(ill, 0x00000034) // trap
+       case "mips64le":
+               binary.LittleEndian.PutUint32(ill, 0x00000034) // trap
        default:
                // Just leave it as 0 and hope for the best.
        }
index 607c6fb9846c0f20475b7a0bb5e405bcf07dccf4..6c8aab32cb57f33796c13e7e010a449b23a12553 100644 (file)
@@ -1,7 +1,8 @@
 // errorcheck -0 -d=nil
 // Fails on ppc64x because of incomplete optimization.
 // See issues 9058.
-// +build !ppc64,!ppc64le
+// Same reason for mips64x.
+// +build !ppc64,!ppc64le,!mips64,!mips64le
 
 // Copyright 2013 The Go Authors.  All rights reserved.
 // Use of this source code is governed by a BSD-style
index e5c2a9f30e2f708543b8c4387642fb682b1e936b..bc14854574c458ddfdfb7ef381dbac02f7bbf548 100644 (file)
@@ -247,6 +247,9 @@ TestCases:
                var buf bytes.Buffer
                ptrSize := 4
                switch goarch {
+               case "mips64", "mips64le":
+                       ptrSize = 8
+                       fmt.Fprintf(&buf, "#define CALL JAL\n#define REGISTER (R0)\n")
                case "ppc64", "ppc64le":
                        ptrSize = 8
                        fmt.Fprintf(&buf, "#define CALL BL\n#define REGISTER (CTR)\n")