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

Unified Diff: src/trusted/validator_ragel/dfa_validate_common.c

Issue 1837733002: x86 validator: Implement rewriting "movntps" to "movaps" on x86-32 (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 4 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/trusted/validator/validation_rewrite_test_data.S ('k') | tests/validator/rewrite_nontemporals.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/validator_ragel/dfa_validate_common.c
diff --git a/src/trusted/validator_ragel/dfa_validate_common.c b/src/trusted/validator_ragel/dfa_validate_common.c
index 7eb44653aaad750b72862e18df520896254ec6a9..ec77cad4fa59e9c739c848ed86f82237649dd25b 100644
--- a/src/trusted/validator_ragel/dfa_validate_common.c
+++ b/src/trusted/validator_ragel/dfa_validate_common.c
@@ -83,6 +83,10 @@ static Bool RewriteNonTemporal(uint8_t *ptr, uint8_t *end, uint32_t info) {
/* movntq => movq */
ptr[1] = 0x7f;
return TRUE;
+ } else if (size >= 2 && memcmp(ptr, "\x0f\x2b", 2) == 0) {
+ /* movntps => movaps */
+ ptr[1] = 0x29;
+ return TRUE;
} else if (size >= 3 && memcmp(ptr, "\x66\x0f\xe7", 3) == 0) {
/* movntdq => movdqa */
ptr[2] = 0x7f;
« no previous file with comments | « src/trusted/validator/validation_rewrite_test_data.S ('k') | tests/validator/rewrite_nontemporals.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698