[inline-asm]No error for conflict between inputs\outputs and clobber … · llvm/llvm-project@168b954 (original) (raw)

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ template<> Type asm_read(Type *ptr) { \
62 62 __asm__("rep " Movs " \n\t" \
63 63 : \
64 64 : "D"(dst), "S"(src), "c"(size) \
65 - : "rsi", "rdi", "rcx", "memory"); \
65 + : "memory"); \
66 66 }
67 67
68 68 DECLARE_ASM_WRITE(U8, "8", "movq", "r");
@@ -104,7 +104,7 @@ template<> Type asm_read(Type *ptr) { \
104 104 __asm__("rep " Movs " \n\t" \
105 105 : \
106 106 : "D"(dst), "S"(src), "c"(size) \
107 - : "esi", "edi", "ecx", "memory"); \
107 + : "memory"); \
108 108 }
109 109
110 110 } // End of anonymous namespace