Index: gcc/gcc/config/i386/i386.md |
diff --git a/gcc/gcc/config/i386/i386.md b/gcc/gcc/config/i386/i386.md |
index a29f022909e98dbf78c9ba02a5e62515825be23b..be9d78491424c098a631591b356faef05278c9c1 100644 |
--- a/gcc/gcc/config/i386/i386.md |
+++ b/gcc/gcc/config/i386/i386.md |
@@ -20368,9 +20368,7 @@ |
{ |
if (TARGET_NACL) |
{ |
- /* Note: %rdi is used, but in reality it's memory read, not store */ |
- return "movl\t%%edi, %%edi\nleaq\t(%%r15,%%rdi), %%rdi\n" |
- "repnz scasb" |
+ return "repnz scasb %%nacl:(%%rdi),%%al,%%r15" |
"\nmovl\t%%edi, %%edi"; |
} |
else |