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

Unified Diff: src/opts/SkBlitRow_opts_arm_neon.cpp

Issue 1527123003: count is an int, so constrain it to a 32-bit w-register. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/SkBlitRow_opts_arm_neon.cpp
diff --git a/src/opts/SkBlitRow_opts_arm_neon.cpp b/src/opts/SkBlitRow_opts_arm_neon.cpp
index 1f97971ee48ab99fb23c8ae47fc44a81f23fe478..95bd229486291542ea278a36076e498d6315cf26 100644
--- a/src/opts/SkBlitRow_opts_arm_neon.cpp
+++ b/src/opts/SkBlitRow_opts_arm_neon.cpp
@@ -390,7 +390,7 @@ void S32A_D565_Opaque_neon(uint16_t* SK_RESTRICT dst,
"movi v4.8h, #0x80 \t\n"
"1: \t\n"
- "sub %[count], %[count], #16 \t\n"
+ "sub %w[count], %w[count], #16 \t\n"
"ld1 {v16.8h-v17.8h}, [%[dst]] \t\n"
"ld4 {v0.16b-v3.16b}, [%[src]], #64 \t\n"
"prfm pldl1keep, [%[src],#512] \t\n"
@@ -416,7 +416,7 @@ void S32A_D565_Opaque_neon(uint16_t* SK_RESTRICT dst,
"umlal v22.8h, v3.8b, v18.8b \t\n"
"ushr v20.8h, v22.8h, #5 \t\n"
"addhn v20.8b, v22.8h, v20.8h \t\n"
- "cmp %[count], #16 \t\n"
+ "cmp %w[count], #16 \t\n"
"mov v6.16b, v4.16b \t\n"
"mov v5.16b, v4.16b \t\n"
"umlal v6.8h, v3.8b, v16.8b \t\n"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698