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:
Anthony Fok 2024-03-20 01:59:13 -06:00 committed by GitHub
parent 0750a9ec91
commit c1ea22a232
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -509,7 +509,8 @@ func BenchmarkImageExif(b *testing.B) {
var usesFMA = runtime.GOARCH == "s390x" ||
runtime.GOARCH == "ppc64" ||
runtime.GOARCH == "ppc64le" ||
runtime.GOARCH == "arm64"
runtime.GOARCH == "arm64" ||
runtime.GOARCH == "riscv64"
// goldenEqual compares two NRGBA images. It is used in golden tests only.
// A small tolerance is allowed on architectures using "fused multiply and add"