]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: test to ensure we guard GOAMD64>v1 instructions
authorKeith Randall <khr@golang.org>
Tue, 28 Sep 2021 20:23:08 +0000 (13:23 -0700)
committerKeith Randall <khr@golang.org>
Tue, 5 Oct 2021 17:05:06 +0000 (17:05 +0000)
commitcbd7200167292b62792272bda46887bdf1b62fb0
tree84abfda8f6f239edf8069d412c7a85333c199d85
parent060cd73ab930339d4565b57593293615b0e0315a
cmd/compile: test to ensure we guard GOAMD64>v1 instructions

When compiling with GOAMD64=v1, clobber all the >v1 instructions
with faulting instructions. Run the binary with the corresponding
feature flags off. We shouldn't try to execute any of the clobbered
instructions.

Change-Id: I295acaf9fd0eafd037192aa6f933365c794cc76e
Reviewed-on: https://go-review.googlesource.com/c/go/+/352831
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Keith Randall <khr@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/amd64/versions_test.go [new file with mode: 0644]