History

x86-64-asm: Implement cmpxchg16b

Michael Matz committed 10 years ago

Commit 9e0af6d1 parent ca8c1cd2 files · +6 −0Browse files

Unified · Split

2 files
  1. tests/asmtest.S +3 −0
  2. x86_64-asm.h +3 −0
tests/asmtest.S+3−0
@@ -535,6 +535,9 @@ cmpxchgw %ax, 0x1000 · 534 unmodified lines
535cmpxchgl %eax, 0x1000535cmpxchgl %eax, 0x1000
536invlpg 0x1000536invlpg 0x1000
537cmpxchg8b 0x1002537cmpxchg8b 0x1002
538#ifdef __x86_64__
539cmpxchg16b (%rax)
540#endif
538 541
539fcmovb %st(5), %st542fcmovb %st(5), %st
540fcmove %st(5), %st543fcmove %st(5), %st
x86_64-asm.h+3−0
@@ -394,6 +394,9 @@ ALT(DEF_ASM_OP2(cmpxchgb, 0x0fb0, 0, OPC_MODRM | OPC_BWLX, OPT_REG, OPT_REG | OP · 393 unmodified lines
394 /* pentium */394 /* pentium */
395 DEF_ASM_OP1(cmpxchg8b, 0x0fc7, 1, OPC_MODRM, OPT_EA )395 DEF_ASM_OP1(cmpxchg8b, 0x0fc7, 1, OPC_MODRM, OPT_EA )
396 396
397 /* AMD 64 */
398 DEF_ASM_OP1(cmpxchg16b, 0x480fc7, 1, OPC_MODRM, OPT_EA )
399
397 /* pentium pro */400 /* pentium pro */
398ALT(DEF_ASM_OP2(cmovo, 0x0f40, 0, OPC_MODRM | OPC_TEST | OPC_WLX, OPT_REGW | OPT_EA, OPT_REGW))401ALT(DEF_ASM_OP2(cmovo, 0x0f40, 0, OPC_MODRM | OPC_TEST | OPC_WLX, OPT_REGW | OPT_EA, OPT_REGW))
399 402

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t