History

x86asm: Add movnti

in the unsuffixed form we also accept REG8 and REG16, for easier parsing (we have no instruction type for only the LQ forms).

Michael Matz committed 4 years ago

Commit 0c36b3f1 parent 64f4b002 files · +8 −0Browse files

Unified · Split

2 files
  1. tests/asmtest.S +4 −0
  2. x86_64-asm.h +4 −0
tests/asmtest.S+4−0
@@ -701,6 +701,10 @@ int $0x10 · 700 unmodified lines
701701 fxsaveq (%r11)
702702 fxrstorq (%rcx)
703703 fxrstorq (%r10)
704+ movnti %ebx, (%rdi)
705+ movntil %ecx, (%rdi)
706+ movnti %rax, (%rdi)
707+ movntiq %r8, (%rdi)
704708
705709 #endif
706710
x86_64-asm.h+4−0
@@ -520,6 +520,10 @@ ALT(DEF_ASM_OP2(movhps, 0x0f17, 0, OPC_MODRM, OPT_SSE, OPT_EA | OPT_REG32 )) · 519 unmodified lines
520520 DEF_ASM_OP2(sqrtps, 0x0f51, 0, OPC_MODRM, OPT_EA | OPT_SSE, OPT_SSE )
521521 DEF_ASM_OP2(subps, 0x0f5c, 0, OPC_MODRM, OPT_EA | OPT_SSE, OPT_SSE )
522522
523+ /* movnti should only accept REG32 and REG64, we accept more */
524+ DEF_ASM_OP2(movnti, 0x0fc3, 0, OPC_MODRM, OPT_REG, OPT_EA)
525+ DEF_ASM_OP2(movntil, 0x0fc3, 0, OPC_MODRM, OPT_REG32, OPT_EA)
526+ DEF_ASM_OP2(movntiq, 0x0fc3, 0, OPC_MODRM | OPC_48, OPT_REG64, OPT_EA)
523527 DEF_ASM_OP1(prefetchnta, 0x0f18, 0, OPC_MODRM, OPT_EA)
524528 DEF_ASM_OP1(prefetcht0, 0x0f18, 1, OPC_MODRM, OPT_EA)
525529 DEF_ASM_OP1(prefetcht1, 0x0f18, 2, OPC_MODRM, OPT_EA)

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