Index: tests/PMFloatTest.cpp |
diff --git a/tests/PMFloatTest.cpp b/tests/PMFloatTest.cpp |
index 5ce6e42854e718ea82cf280a60afc3b5111d6ca4..c3d5e48b4dd6e5eec107d208947d442043b11e45 100644 |
--- a/tests/PMFloatTest.cpp |
+++ b/tests/PMFloatTest.cpp |
@@ -24,7 +24,12 @@ DEF_TEST(SkPMFloat, r) { |
// Test SkPMFloat <-> Sk4f conversion. |
Sk4f fs = clamped; |
+#if defined(SK_CPU_ARM64) && defined(SK_RELEASE) // skia:3570 |
+ SkPMFloat scaled; |
+ scaled = fs * Sk4f(0.25f); |
+#else |
SkPMFloat scaled = fs * Sk4f(0.25f); |
+#endif |
REPORTER_ASSERT(r, SkScalarNearlyEqual(63.75f, scaled.a())); |
REPORTER_ASSERT(r, SkScalarNearlyEqual(38.25f, scaled.r())); |
REPORTER_ASSERT(r, SkScalarNearlyEqual( 0.25f, scaled.g())); |