[PATCH] D28128: [asan] Fix test broken by r290540

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 27 11:51:01 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL290621: [asan] Fix test broken by r290540 (authored by vitalybuka).

Changed prior to commit:
  https://reviews.llvm.org/D28128?vs=82557&id=82558#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D28128

Files:
  compiler-rt/trunk/lib/asan/tests/asan_asm_test.cc


Index: compiler-rt/trunk/lib/asan/tests/asan_asm_test.cc
===================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_asm_test.cc
+++ compiler-rt/trunk/lib/asan/tests/asan_asm_test.cc
@@ -57,12 +57,13 @@
   return res;                                      \
 }
 
-#define DECLARE_ASM_REP_MOVS(Type, Movs)                                       \
-  template <> void asm_rep_movs<Type>(Type * dst, Type * src, size_t size) {   \
-    __asm__("rep " Movs " \n\t"                                                \
-            :                                                                  \
-            : "D"(dst), "S"(src), "c"(size)                                    \
-            : "memory");                                  \
+#define DECLARE_ASM_REP_MOVS(Type, Movs)                         \
+  template <>                                                    \
+  void asm_rep_movs<Type>(Type * dst, Type * src, size_t size) { \
+    __asm__("rep " Movs " \n\t"                                  \
+            : "+D"(dst), "+S"(src), "+c"(size)                   \
+            :                                                    \
+            : "memory");                                         \
   }
 
 DECLARE_ASM_WRITE(U8, "8", "movq", "r");
@@ -99,12 +100,13 @@
   return res;                                      \
 }
 
-#define DECLARE_ASM_REP_MOVS(Type, Movs)                                       \
-  template <> void asm_rep_movs<Type>(Type * dst, Type * src, size_t size) {   \
-    __asm__("rep " Movs " \n\t"                                                \
-            :                                                                  \
-            : "D"(dst), "S"(src), "c"(size)                                    \
-            : "memory");                                  \
+#define DECLARE_ASM_REP_MOVS(Type, Movs)                         \
+  template <>                                                    \
+  void asm_rep_movs<Type>(Type * dst, Type * src, size_t size) { \
+    __asm__("rep " Movs " \n\t"                                  \
+            : "+D"(dst), "+S"(src), "+c"(size)                   \
+            :                                                    \
+            : "memory");                                         \
   }
 
 } // End of anonymous namespace


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28128.82558.patch
Type: text/x-patch
Size: 2375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161227/273bfd5e/attachment.bin>


More information about the llvm-commits mailing list