Home
last modified time | relevance | path

Searched refs:xchg (Results 1 – 25 of 29) sorted by relevance

12

/NextBSD/contrib/compiler-rt/lib/sanitizer_common/
HDsanitizer_atomic_msvc.h201 uptr xchg, in atomic_compare_exchange_strong() argument
205 (void*volatile*)&a->val_dont_use, (void*)xchg, (void*)cmpv); in atomic_compare_exchange_strong()
214 u16 xchg, in atomic_compare_exchange_strong() argument
218 (volatile short*)&a->val_dont_use, (short)xchg, (short)cmpv); in atomic_compare_exchange_strong()
227 u32 xchg, in atomic_compare_exchange_strong() argument
231 (volatile long*)&a->val_dont_use, (long)xchg, (long)cmpv); in atomic_compare_exchange_strong()
240 u64 xchg, in atomic_compare_exchange_strong() argument
244 (volatile long long*)&a->val_dont_use, (long long)xchg, (long long)cmpv); in atomic_compare_exchange_strong()
254 typename T::Type xchg, in atomic_compare_exchange_weak() argument
256 return atomic_compare_exchange_strong(a, cmp, xchg, mo); in atomic_compare_exchange_weak()
HDsanitizer_atomic_clang.h77 typename T::Type xchg, in atomic_compare_exchange_strong() argument
81 Type prev = __sync_val_compare_and_swap(&a->val_dont_use, cmpv, xchg); in atomic_compare_exchange_strong()
91 typename T::Type xchg, in atomic_compare_exchange_weak() argument
93 return atomic_compare_exchange_strong(a, cmp, xchg, mo); in atomic_compare_exchange_weak()
/NextBSD/sys/dev/pms/RefTisa/tisa/sassata/sas/tgt/
HDttdglobl.h62 #define TD_XCHG_GET_STATE(xchg) (xchg->state) argument
63 #define TD_XCHG_SET_STATE(xchg, val) (xchg->state) = (val) argument
/NextBSD/contrib/gcc/config/i386/
HDsync.md104 ;; operand 4. This breaks, as the xchg will move the PIC register contents
122 "xchg{l}\t%%ebx, %3\;lock\;cmpxchg8b\t%1\;xchg{l}\t%%ebx, %3")
220 "xchg{l}\t%%ebx, %3\;lock\;cmpxchg8b\t%1\;xchg{l}\t%%ebx, %3")
233 ;; Recall that xchg implicitly sets LOCK#, so adding it again wastes space.
241 "xchg{<modesuffix>}\t{%1, %0|%0, %1}")
HDi386.md1288 "xchg{l}\t%1, %0"
1406 "xchg{l}\t%k1, %k0"
1420 "xchg{w}\t%1, %0"
1582 "xchg{l}\t%k1, %k0"
1596 "xchg{b}\t%1, %0"
2139 "xchg{q}\t%1, %0"
/NextBSD/crypto/openssl/crypto/perlasm/
HDx86asm.pl53 &xchg(&HB(@_),&LB(@_));
55 &xchg(&HB(@_),&LB(@_));
66 sub ::exch { &xchg(@_); }
/NextBSD/crypto/openssl/crypto/aes/asm/
HDvpaes-x86.pl755 &xchg ($base,"esp"); # alloca
779 &xchg ($base,"esp"); # alloca
812 &xchg ($base,"esp"); # alloca
831 &xchg ($base,"esp"); # alloca
852 &xchg ($base,"esp"); # alloca
HDaesni-x86.pl1853 &xchg ($rounds_,"esp"); # alloca
/NextBSD/contrib/gcc/
HDgthr-win32.h379 __gthr_i486_lock_cmp_xchg(long *dest, long xchg, long comperand) in __gthr_i486_lock_cmp_xchg() argument
386 : "0" (comperand), "m" (*dest), "r" (xchg) in __gthr_i486_lock_cmp_xchg()
/NextBSD/crypto/openssl/crypto/bn/asm/
HDvia-mont.pl137 &xchg ("ebp","esp"); # alloca
/NextBSD/crypto/openssl/crypto/sha/
HDsha512.c381 _asm xchg dh, dl in __pull64be()
382 _asm xchg ah, al in __pull64be()
383 _asm rol edx, 16 _asm rol eax, 16 _asm xchg dh, dl _asm xchg ah, al} in __pull64be()
/NextBSD/sys/boot/i386/boot2/
HDboot1.S320 xchg %ax,%cx # number
342 xchg %bx,%ax # Block count
/NextBSD/contrib/llvm/lib/Target/X86/
HDX86InstrInfo.td1683 // Atomic swap. These are just normal xchg instructions. But since a memory
1719 defm XCHG : ATOMIC_SWAP<0x86, 0x87, "xchg", "atomic_swap", IIC_XCHG_MEM>;
1725 "xchg{b}\t{$val, $src|$src, $val}", [], IIC_XCHG_REG>;
1727 "xchg{w}\t{$val, $src|$src, $val}", [], IIC_XCHG_REG>,
1730 "xchg{l}\t{$val, $src|$src, $val}", [], IIC_XCHG_REG>,
1733 "xchg{q}\t{$val, $src|$src, $val}", [], IIC_XCHG_REG>;
1739 "xchg{w}\t{$src, %ax|ax, $src}", [], IIC_XCHG_REG>, OpSize16;
1742 "xchg{l}\t{$src, %eax|eax, $src}", [], IIC_XCHG_REG>,
1746 // xchg %eax, %eax needs to clear upper 32-bits of RAX so is not a NOP.
1748 "xchg{l}\t{$src, %eax|eax, $src}", [], IIC_XCHG_REG>,
[all …]
HDX86RegisterInfo.td399 // mode to prevent encoding using the 0x90 NOP encoding. xchg %eax, %eax needs
/NextBSD/sys/boot/pc98/btx/btx/
HDbtx.S162 xchg %ax,%cx # as word
165 xchg %ax,%dx # P:DPL:type
167 xchg %ax,%bx # set
/NextBSD/sys/boot/i386/btx/btx/
HDbtx.S166 xchg %ax,%cx # as word
169 xchg %ax,%dx # P:DPL:type
171 xchg %ax,%bx # set
/NextBSD/contrib/gcc/config/ia64/
HDsync.md169 "xchg<modesuffix> %0 = %1, %2"
/NextBSD/contrib/binutils/opcodes/
HDia64-ic.tbl62 mem-readers-int; IC:cmpxchg, IC:fetchadd, IC:xchg, IC:ld
66 mem-writers-int; IC:cmpxchg, IC:fetchadd, IC:xchg, IC:st
223 …, sum, IC:sxt, sync, tak, tbit, tf, thash, tnat, tpa, ttag, IC:unpack, IC:xchg, xma, xmpy, xor, IC…
252 xchg; xchg1, xchg2, xchg4, xchg8
HDi386-opc.tbl97 // xchg commutes: we allow both operand orders.
99 // In the 64bit code, xchg rax, rax is reused for new nop instruction.
100 xchg, 2, 0x90, None, 0, ShortForm|No_bSuf|No_sSuf|No_xSuf, { Reg16|Reg32|Reg64, Acc }
101 xchg, 2, 0x90, None, 0, ShortForm|No_bSuf|No_sSuf|No_xSuf, { Acc, Reg16|Reg32|Reg64 }
102 xchg, 2, 0x86, None, 0, W|Modrm|No_sSuf|No_xSuf, { Reg8|Reg16|Reg32|Reg64, Reg8|Reg16|Reg32|Reg64|B…
103 xchg, 2, 0x86, None, 0, W|Modrm|No_sSuf|No_xSuf, { Reg8|Reg16|Reg32|Reg64|BaseIndex|Disp8|Disp16|Di…
473 // nop is actually "xchg %ax,%ax" in 16bit mode, "xchg %eax,%eax" in
474 // 32bit mode and "xchg %rax,%rax" in 64bit mode.
HDChangeLog432 * i386-opc.c (i386_optab): Allow %eax with xchg in 64bit.
/NextBSD/sys/netinet/
HDtcp_subr.c913 #define xchg(a,b,type) { type t; t=a; a=b; b=t; } in tcp_respond() macro
916 xchg(ip6->ip6_dst, ip6->ip6_src, struct in6_addr); in tcp_respond()
921 xchg(ip->ip_dst.s_addr, ip->ip_src.s_addr, uint32_t); in tcp_respond()
933 xchg(nth->th_dport, nth->th_sport, uint16_t); in tcp_respond()
934 #undef xchg in tcp_respond()
/NextBSD/sys/geom/part/
HDg_part.c2269 uintptr_t *xchg; in g_part_unload_event() local
2275 xchg = arg; in g_part_unload_event()
2277 scheme = (void *)(*xchg); in g_part_unload_event()
2301 *xchg = error; in g_part_unload_event()
/NextBSD/contrib/llvm/lib/AsmParser/
HDLLLexer.cpp656 KEYWORD(xchg); KEYWORD(nand); KEYWORD(max); KEYWORD(min); KEYWORD(umax); in LexIdentifier()
/NextBSD/contrib/binutils/gas/
HDChangeLog682 xchg for xchg %rax,%rax.
693 "xchg %eax, %eax".
HDChangeLog-2006984 (i386_align_code): Use xchg %ax,%ax for 2 byte nop. Optimize
1101 "xchg %rax,%rax".

12