]> Cypherpunks repositories - gostls13.git/commit
test: improve asmcheck syntax
authorGiovanni Bajo <rasky@develer.com>
Thu, 1 Mar 2018 00:39:01 +0000 (01:39 +0100)
committerGiovanni Bajo <rasky@develer.com>
Thu, 1 Mar 2018 18:10:48 +0000 (18:10 +0000)
commit879a1ff1e494188a7aec8f094fac9bd71850d392
tree6447af3d97b06356ce47a13761b9708af3c32c01
parent9372e3f5ef6c9653d29cbba2dc06bdcad2b3724c
test: improve asmcheck syntax

asmcheck comments now support a compact form of specifying
multiple checks for each platform, using the following syntax:

   amd64:"SHL\t[$]4","SHR\t[$]4"

Negative checks are also parsed using the following syntax:

   amd64:-"ROR"

though they are still not working.

Moreover, out-of-line comments have been implemented. This
allows to specify asmchecks on comment-only lines, that will
be matched on the first subsequent non-comment non-empty line.

    // amd64:"XOR"
    // arm:"EOR"

    x ^= 1

Change-Id: I110c7462fc6a5c70fd4af0d42f516016ae7f2760
Reviewed-on: https://go-review.googlesource.com/97816
Reviewed-by: Keith Randall <khr@golang.org>
test/codegen/rotate.go
test/run.go