1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _TOOLS_LINUX_ASM_X86_RMWcc
3 #define _TOOLS_LINUX_ASM_X86_RMWcc
5 #define __GEN_RMWcc(fullop, var, cc, ...) \
7 asm_volatile_goto (fullop "; j" cc " %l[cc_label]" \
8 : : "m" (var), ## __VA_ARGS__ \
9 : "memory" : cc_label); \
15 #define GEN_UNARY_RMWcc(op, var, arg0, cc) \
16 __GEN_RMWcc(op " " arg0, var, cc)
18 #define GEN_BINARY_RMWcc(op, var, vcon, val, arg0, cc) \
19 __GEN_RMWcc(op " %1, " arg0, var, cc, vcon (val))
21 #endif /* _TOOLS_LINUX_ASM_X86_RMWcc */