diff options
| author | Giovanni Bajo <rasky@develer.com> | 2018-04-15 19:00:27 +0200 |
|---|---|---|
| committer | Giovanni Bajo <rasky@develer.com> | 2018-04-15 20:02:43 +0000 |
| commit | 284ba47b4916e3cf4f206494ad5a3577e20db9bf (patch) | |
| tree | 9c2ab90dc5d305c01085d088ad9a301333a86d8e /test/codegen/math.go | |
| parent | 01aa1d7dbe3a5b9f9a96f84cc625cbb7e372b0f0 (diff) | |
| download | go-284ba47b4916e3cf4f206494ad5a3577e20db9bf.tar.xz | |
test: run codegen tests on all supported architecture variants
This CL makes the codegen testsuite automatically test all
architecture variants for architecture specified in tests. For
instance, if a test file specifies a "arm" test, it will be
automatically run on all GOARM variants (5,6,7), to increase
the coverage.
The CL also introduces a syntax to specify only a specific
variant (eg: "arm/7") in case the test makes sense only there.
The same syntax also allows to specify the operating system
in case it matters (eg: "plan9/386/sse2").
Fixes #24658
Change-Id: I2eba8b918f51bb6a77a8431a309f8b71af07ea22
Reviewed-on: https://go-review.googlesource.com/107315
Run-TryBot: Giovanni Bajo <rasky@develer.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'test/codegen/math.go')
| -rw-r--r-- | test/codegen/math.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/codegen/math.go b/test/codegen/math.go index 9abbc0d1bb..efa3a2bc8f 100644 --- a/test/codegen/math.go +++ b/test/codegen/math.go @@ -33,9 +33,10 @@ func approx(x float64) { func sqrt(x float64) float64 { // amd64:"SQRTSD" - // 386:"FSQRT|SQRTSD" (387 or sse2) + // 386/387:"FSQRT" 386/sse2:"SQRTSD" // arm64:"FSQRTD" - // mips:"SQRTD" mips64:"SQRTD" + // arm/7:"SQRTD" + // mips/hardfloat:"SQRTD" mips64:"SQRTD" return math.Sqrt(x) } |
