forked from OSchip/llvm-project
[asan] Fix test broken by r290540
Reviewers: ahatanak, eugenis, myatsina Subscribers: kubabrecka, zizhar, llvm-commits Differential Revision: https://reviews.llvm.org/D28128 llvm-svn: 290621
This commit is contained in:
parent
e14524ca30
commit
a5a916bdca
|
@ -57,12 +57,13 @@ template<> Type asm_read<Type>(Type *ptr) { \
|
|||
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 @@ template<> Type asm_read<Type>(Type *ptr) { \
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue