From c1ea22a232add4c6f371b4278dd3089f102ac15c Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Wed, 20 Mar 2024 01:59:13 -0600 Subject: 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. --- resources/image_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3