]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
testing: Set usesFMA as true for riscv64 too
authorAnthony Fok <foka@debian.org>
Wed, 20 Mar 2024 07:59:13 +0000 (01:59 -0600)
committerGitHub <noreply@github.com>
Wed, 20 Mar 2024 07:59:13 +0000 (08:59 +0100)
This fixes TestImageOperationsGolden "values are not deep equal" error on riscv64 with Go 1.22 and above.

resources/image_test.go

index a6b54d3ddeb80b890d1dc747abc90dee6dc6db94..231a064536d23e8fff05855527f47189385a1f9f 100644 (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"