testing: Set usesFMA as true for riscv64 too
This fixes TestImageOperationsGolden "values are not deep equal" error on riscv64 with Go 1.22 and above.
This commit is contained in:
parent
0750a9ec91
commit
c1ea22a232
1 changed files with 2 additions and 1 deletions
|
@ -509,7 +509,8 @@ func BenchmarkImageExif(b *testing.B) {
|
||||||
var usesFMA = runtime.GOARCH == "s390x" ||
|
var usesFMA = runtime.GOARCH == "s390x" ||
|
||||||
runtime.GOARCH == "ppc64" ||
|
runtime.GOARCH == "ppc64" ||
|
||||||
runtime.GOARCH == "ppc64le" ||
|
runtime.GOARCH == "ppc64le" ||
|
||||||
runtime.GOARCH == "arm64"
|
runtime.GOARCH == "arm64" ||
|
||||||
|
runtime.GOARCH == "riscv64"
|
||||||
|
|
||||||
// goldenEqual compares two NRGBA images. It is used in golden tests only.
|
// goldenEqual compares two NRGBA images. It is used in golden tests only.
|
||||||
// A small tolerance is allowed on architectures using "fused multiply and add"
|
// A small tolerance is allowed on architectures using "fused multiply and add"
|
||||||
|
|
Loading…
Add table
Reference in a new issue