aboutsummaryrefslogtreecommitdiff
path: root/test/nosplit.go
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2020-01-25 03:10:04 +1100
committerJoel Sing <joel@sing.id.au>2020-01-25 16:30:26 +0000
commit7f331e0e1735449380299654dc915fb5c8fe84ab (patch)
treed62c7a7dc416f52ba897bd71eb89e85b656ad054 /test/nosplit.go
parent69660ed7e05b8fccf071210cb0963aba8edc5ec3 (diff)
downloadgo-7f331e0e1735449380299654dc915fb5c8fe84ab.tar.gz
go-7f331e0e1735449380299654dc915fb5c8fe84ab.zip
test: adjust tests for riscv64
This disables some tests that are unsupported on riscv64 and adds support for risc64 to test/nosplit. Updates #27532, #36739 and #36765 Change-Id: I0a57797a05bc80236709fc240c0a0efb0ee0d16b Reviewed-on: https://go-review.googlesource.com/c/go/+/216263 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'test/nosplit.go')
-rw-r--r--test/nosplit.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/nosplit.go b/test/nosplit.go
index 3b7e605999..ad19d8a2b5 100644
--- a/test/nosplit.go
+++ b/test/nosplit.go
@@ -283,6 +283,9 @@ TestCases:
case "amd64":
ptrSize = 8
fmt.Fprintf(&buf, "#define REGISTER AX\n")
+ case "riscv64":
+ ptrSize = 8
+ fmt.Fprintf(&buf, "#define REGISTER A0\n")
case "s390x":
ptrSize = 8
fmt.Fprintf(&buf, "#define REGISTER R10\n")