Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Unified Diff: tests/Sk4xTest.cpp

Issue 997353005: Start fresh on swizzles (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: badc Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/opts/Sk4x_sse.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/Sk4xTest.cpp
diff --git a/tests/Sk4xTest.cpp b/tests/Sk4xTest.cpp
index d7a016c3c2406a500579303916863e0551385e46..43a524e09720f56e2e76355ee00918217495587b 100644
--- a/tests/Sk4xTest.cpp
+++ b/tests/Sk4xTest.cpp
@@ -132,10 +132,7 @@ DEF_TEST(Sk4x_MinMax, r) {
}
DEF_TEST(Sk4x_Swizzle, r) {
- ASSERT_EQ(Sk4f(3,4,1,2), Sk4f(1,2,3,4).zwxy());
- ASSERT_EQ(Sk4f(1,2,5,6), Sk4f::XYAB(Sk4f(1,2,3,4), Sk4f(5,6,7,8)));
- ASSERT_EQ(Sk4f(3,4,7,8), Sk4f::ZWCD(Sk4f(1,2,3,4), Sk4f(5,6,7,8)));
- ASSERT_EQ(Sk4i(3,4,1,2), Sk4i(1,2,3,4).zwxy());
- ASSERT_EQ(Sk4i(1,2,5,6), Sk4i::XYAB(Sk4i(1,2,3,4), Sk4i(5,6,7,8)));
- ASSERT_EQ(Sk4i(3,4,7,8), Sk4i::ZWCD(Sk4i(1,2,3,4), Sk4i(5,6,7,8)));
+ ASSERT_EQ(Sk4f(1,2,3,4).badc(), Sk4f(2,1,4,3));
+
+ ASSERT_EQ(Sk4i(1,2,3,4).badc(), Sk4i(2,1,4,3));
}
« no previous file with comments | « src/opts/Sk4x_sse.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698