aboutsummaryrefslogtreecommitdiff
path: root/test/sliceopt.go
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2016-07-07 10:49:43 -0400
committerCherry Zhang <cherryyz@google.com>2016-07-16 03:13:45 +0000
commit6b6de15d327142a19c978c8b9811310b174fd60b (patch)
tree8c14e4054d5c8860d704c95b9d46563582b12191 /test/sliceopt.go
parent7d70f84f547a1b60279985fa91c407ddfde9bd64 (diff)
downloadgo-6b6de15d327142a19c978c8b9811310b174fd60b.tar.gz
go-6b6de15d327142a19c978c8b9811310b174fd60b.zip
[dev.ssa] cmd/compile: support NaCl in SSA for ARM
NaCl code runs in sandbox and there are restrictions for its instruction uses (https://developer.chrome.com/native-client/reference/sandbox_internals/arm-32-bit-sandbox). Like the legacy backend, on NaCl, - don't use R9, which is used as NaCl's "thread pointer". - don't use Duff's device. - don't use indexed load/stores. - the assembler rewrites DIV/MOD to runtime calls, which on NaCl clobbers R12, so R12 is marked as clobbered for DIV/MOD. - other restrictions are satisfied by the assembler. Enable SSA specific tests on nacl/arm, and disable non-SSA ones. Updates #15365. Change-Id: I9262693ec6756b89ca29d3ae4e52a96fe5403b02 Reviewed-on: https://go-review.googlesource.com/24859 Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'test/sliceopt.go')
-rw-r--r--test/sliceopt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sliceopt.go b/test/sliceopt.go
index e60516571b..d11c51eaf9 100644
--- a/test/sliceopt.go
+++ b/test/sliceopt.go
@@ -1,4 +1,4 @@
-// +build !amd64,!arm nacl,arm
+// +build !amd64,!arm
// errorcheck -0 -d=append,slice
// Copyright 2015 The Go Authors. All rights reserved.