]> Cypherpunks repositories - gostls13.git/commit
internal/cpu: replace arch dependent with generic minimal feature test
authorMartin Möhrmann <moehrmann@google.com>
Fri, 26 Oct 2018 19:04:45 +0000 (21:04 +0200)
committerMartin Möhrmann <martisch@uos.de>
Sun, 28 Oct 2018 14:03:47 +0000 (14:03 +0000)
commit3c9ad7cb41c9c8166d3322e5bc7554a25cda7523
tree24d1e286e8ab7260b4a5615ee2b8c1cb3d5a6288
parent80b83770498dd1d4a4b13ac2d016419a65026f1b
internal/cpu: replace arch dependent with generic minimal feature test

Use information about required CPU features stored in the CPU feature
options slice to test if minimal CPU requirements are met instead
of hard coding this information in the tests directly.

Change-Id: I72d89b1cff305b8e751995d4230a2217e32f4236
Reviewed-on: https://go-review.googlesource.com/c/145118
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Martin Möhrmann <martisch@uos.de>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/internal/cpu/cpu_arm64_test.go [deleted file]
src/internal/cpu/cpu_ppc64x.go
src/internal/cpu/cpu_ppc64x_test.go [deleted file]
src/internal/cpu/cpu_test.go
src/internal/cpu/cpu_x86_test.go