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

Unified Diff: tests/validator/rewrite_nontemporals.c

Issue 1836633002: x86 validator: Implement rewriting "movntq" to "movq" on x86-64 (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_ragel/dfa_validate_common.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/validator/rewrite_nontemporals.c
diff --git a/tests/validator/rewrite_nontemporals.c b/tests/validator/rewrite_nontemporals.c
index 00a86793f74f279cd4cd8a9940794f2b302d67e2..cbed4b243b08e9353e2cb9032ecaec707e55500b 100644
--- a/tests/validator/rewrite_nontemporals.c
+++ b/tests/validator/rewrite_nontemporals.c
@@ -40,13 +40,11 @@ int main(void) {
/* This compiles to prefetchnta on x86. */
__builtin_prefetch(&g_dest, /* rw= */ 0, /* locality= */ 0);
-#if defined(__i386__)
/* Test movntq. */
reset_test_vars();
- asm("movq g_src, %%mm0\n"
- "movntq %%mm0, g_dest\n" : : : "mm0");
+ asm("movq g_src" MEM_SUFFIX ", %%mm0\n"
+ "movntq %%mm0, g_dest" MEM_SUFFIX "\n" : : : "mm0");
ASSERT_EQ(memcmp(g_dest, g_src, 8), 0);
-#endif
#if defined(__x86_64__)
/* Test movntps. */
« no previous file with comments | « src/trusted/validator_ragel/dfa_validate_common.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698