aboutsummaryrefslogtreecommitdiff
path: root/test/nosplit.go
diff options
context:
space:
mode:
authorXiaodong Liu <liuxiaodong@loongson.cn>2022-05-19 20:01:10 +0800
committerDavid Chase <drchase@google.com>2022-05-20 16:16:37 +0000
commitc6ef69e7d7f79f6fc72e51aa7b1ff3c7373b7b53 (patch)
tree0b77cb7b0c21da67769c0672a35909de64971b46 /test/nosplit.go
parent22a3209bc6efd5cc54da57f6125b91a32b6250b0 (diff)
downloadgo-c6ef69e7d7f79f6fc72e51aa7b1ff3c7373b7b53.tar.gz
go-c6ef69e7d7f79f6fc72e51aa7b1ff3c7373b7b53.zip
misc, test: fix test error for loong64
Contributors to the loong64 port are: Weining Lu <luweining@loongson.cn> Lei Wang <wanglei@loongson.cn> Lingqin Gong <gonglingqin@loongson.cn> Xiaolin Zhao <zhaoxiaolin@loongson.cn> Meidan Li <limeidan@loongson.cn> Xiaojuan Zhai <zhaixiaojuan@loongson.cn> Qiyuan Pu <puqiyuan@loongson.cn> Guoqi Chen <chenguoqi@loongson.cn> This port has been updated to Go 1.15.6: https://github.com/loongson/go Updates #46229 Change-Id: I6760b4a7e51646773cd0f48baa1baba01b213b7d Reviewed-on: https://go-review.googlesource.com/c/go/+/342325 Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
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 9cedb93ec3..218eb73727 100644
--- a/test/nosplit.go
+++ b/test/nosplit.go
@@ -284,6 +284,9 @@ TestCases:
case "mips64", "mips64le":
ptrSize = 8
fmt.Fprintf(&buf, "#define REGISTER (R0)\n")
+ case "loong64":
+ ptrSize = 8
+ fmt.Fprintf(&buf, "#define REGISTER (R0)\n")
case "ppc64", "ppc64le":
ptrSize = 8
fmt.Fprintf(&buf, "#define REGISTER (CTR)\n")