]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add an explicit test for compile of arch.ZeroRange
authorDan Scales <danscales@google.com>
Tue, 1 Oct 2019 20:36:07 +0000 (13:36 -0700)
committerDan Scales <danscales@google.com>
Wed, 2 Oct 2019 17:24:11 +0000 (17:24 +0000)
commit0000f0be0a3d357de56839330b5ccf04f4d593fe
tree0515ef29d75b6ad5f0e6e040a754bc03a988763b
parent0ba0ea172d12901cba79314e26d5713b857c29c4
cmd/compile:  add an explicit test for compile of arch.ZeroRange

Add a test that causes generation of arch.ZeroRange calls of various sizes 8-136
bytes in the compiler. This is to test that ZeroRanges of various sizes actually
compile on different architectures, but is not testing runtime correctness (which
is hard to do).

Updates #34604

Change-Id: I4131eb86669bdfe8d4e36f4ae5c2a7b069abd6c4
Reviewed-on: https://go-review.googlesource.com/c/go/+/198045
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/gc/zerorange_test.go [new file with mode: 0644]