]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: testing harness for checking generated assembly
authorKeith Randall <khr@golang.org>
Tue, 24 May 2016 21:09:02 +0000 (14:09 -0700)
committerKeith Randall <khr@golang.org>
Thu, 26 May 2016 23:07:01 +0000 (23:07 +0000)
commit9369f22b8444d4e4afd791273ae13121d2ec7a6d
tree8c9e179c65f9ddfa4f66c0b1c223f026e3b7b8f5
parentb1894bb5cc781f1c59af727cea07ba4e84181830
cmd/compile: testing harness for checking generated assembly

Add a test which compiles a function and checks the
generated assembly to make sure certain patterns are present.
This test allows us to do white box tests of the compiler
to make sure optimizations don't regress.

Added a few simple tests for now.  More to come.

Change-Id: I4ab5ce5d95b9e04e7d0d9328ffae47b8d1f95e74
Reviewed-on: https://go-review.googlesource.com/23403
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/asm_test.go [new file with mode: 0644]