aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAnthony Fok <[email protected]>2024-03-20 01:59:13 -0600
committerGitHub <[email protected]>2024-03-20 08:59:13 +0100
commitc1ea22a232add4c6f371b4278dd3089f102ac15c (patch)
treeb10b9a2ef2dc4e086d1d06a2b15094505a01e00e
parent0750a9ec91bbd7fc1bf21d1a7b5a0710e967c645 (diff)
downloadhugo-c1ea22a232add4c6f371b4278dd3089f102ac15c.tar.gz
hugo-c1ea22a232add4c6f371b4278dd3089f102ac15c.zip
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.
-rw-r--r--resources/image_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/image_test.go b/resources/image_test.go
index a6b54d3dd..231a06453 100644
--- a/resources/image_test.go
+++ b/resources/image_test.go
@@ -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"