mirror of
https://github.com/golang/go
synced 2024-11-23 05:10:09 -07:00
test: fix nosplit test, and disable nilptr3 test on arm64
Change-Id: I5d40e04395de743a8fdcfa8bdc0e580729bc66a3 Reviewed-on: https://go-review.googlesource.com/7147 Reviewed-by: Minux Ma <minux@golang.org> Reviewed-by: Dave Cheney <dave@cheney.net> Reviewed-by: Russ Cox <rsc@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
1abd8185b2
commit
ddf6d8005d
@ -1,6 +1,7 @@
|
|||||||
// errorcheck -0 -d=nil
|
// errorcheck -0 -d=nil
|
||||||
// Fails on ppc64x because of incomplete optimization. See issue 9058.
|
// Fails on ppc64x and arm64 because of incomplete optimization.
|
||||||
// +build !ppc64,!ppc64le
|
// See issues 9058 and 10105.
|
||||||
|
// +build !ppc64,!ppc64le,!arm64
|
||||||
|
|
||||||
// Copyright 2013 The Go Authors. All rights reserved.
|
// Copyright 2013 The Go Authors. All rights reserved.
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
|
@ -261,6 +261,9 @@ TestCases:
|
|||||||
fmt.Fprintf(&buf, "#define CALL BL\n#define REGISTER (CTR)\n#define RET RETURN\n")
|
fmt.Fprintf(&buf, "#define CALL BL\n#define REGISTER (CTR)\n#define RET RETURN\n")
|
||||||
case "arm":
|
case "arm":
|
||||||
fmt.Fprintf(&buf, "#define CALL BL\n#define REGISTER (R0)\n")
|
fmt.Fprintf(&buf, "#define CALL BL\n#define REGISTER (R0)\n")
|
||||||
|
case "arm64":
|
||||||
|
ptrSize = 8
|
||||||
|
fmt.Fprintf(&buf, "#define CALL BL\n#define REGISTER (R0)\n")
|
||||||
case "amd64":
|
case "amd64":
|
||||||
ptrSize = 8
|
ptrSize = 8
|
||||||
fmt.Fprintf(&buf, "#define REGISTER AX\n")
|
fmt.Fprintf(&buf, "#define REGISTER AX\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user