Skip to content

Commit

Permalink
testing: Set usesFMA as true for riscv64 too
Browse files Browse the repository at this point in the history
This fixes TestImageOperationsGolden "values are not deep equal" error on riscv64 with Go 1.22 and above.
  • Loading branch information
anthonyfok committed Mar 20, 2024
1 parent 0750a9e commit c1ea22a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/image_test.go
Expand Up @@ -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"
Expand Down

0 comments on commit c1ea22a

Please sign in to comment.