diff options
author | Cherry Zhang <cherryyz@google.com> | 2016-07-07 10:49:43 -0400 |
---|---|---|
committer | Cherry Zhang <cherryyz@google.com> | 2016-07-16 03:13:45 +0000 |
commit | 6b6de15d327142a19c978c8b9811310b174fd60b (patch) | |
tree | 8c14e4054d5c8860d704c95b9d46563582b12191 /test/nilptr3.go | |
parent | 7d70f84f547a1b60279985fa91c407ddfde9bd64 (diff) | |
download | go-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/nilptr3.go')
-rw-r--r-- | test/nilptr3.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/nilptr3.go b/test/nilptr3.go index 75f5a10bd0..4615b90845 100644 --- a/test/nilptr3.go +++ b/test/nilptr3.go @@ -2,7 +2,7 @@ // Fails on ppc64x because of incomplete optimization. // See issues 9058. // Same reason for mips64x and s390x. -// +build !ppc64,!ppc64le,!mips64,!mips64le,!amd64,!s390x,!arm nacl,arm +// +build !ppc64,!ppc64le,!mips64,!mips64le,!amd64,!s390x,!arm // Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style |