History

x86-64-asm: Tidy

Michael Matz committed 10 years ago

Commit 4094f7c1 parent 58963822 files · +3 −5Browse files

Unified · Split

2 files
  1. tests/asmtest.S +1 −0
  2. x86_64-asm.h +2 −5
tests/asmtest.S+1−0
@@ -739,6 +739,7 @@ ft1: ft2: ft3: ft4: ft5: ft6: ft7: ft8: ft9: · 738 unmodified lines
739 movq (%ebp), %mm1739 movq (%ebp), %mm1
740 movq %mm2, (%edi)740 movq %mm2, (%edi)
741 movq (%edi), %xmm3741 movq (%edi), %xmm3
742 movq %mm4, %mm5
742#ifdef __x86_64__743#ifdef __x86_64__
743 movq %rcx, %mm1744 movq %rcx, %mm1
744 movq %rdx, %xmm2745 movq %rdx, %xmm2
x86_64-asm.h+2−5
@@ -221,8 +221,8 @@ ALT(DEF_ASM_OP1(setob, 0x0f90, 0, OPC_MODRM | OPC_TEST, OPT_REG8 | OPT_EA)) · 220 unmodified lines
221 DEF_ASM_OP0(leave, 0xc9)221 DEF_ASM_OP0(leave, 0xc9)
222 DEF_ASM_OP0(ret, 0xc3)222 DEF_ASM_OP0(ret, 0xc3)
223 DEF_ASM_OP0(retq, 0xc3)223 DEF_ASM_OP0(retq, 0xc3)
224ALT(DEF_ASM_OP1(ret, 0xc2, 0, 0, OPT_IM16))
225ALT(DEF_ASM_OP1(retq, 0xc2, 0, 0, OPT_IM16))224ALT(DEF_ASM_OP1(retq, 0xc2, 0, 0, OPT_IM16))
225ALT(DEF_ASM_OP1(ret, 0xc2, 0, 0, OPT_IM16))
226 DEF_ASM_OP0(lret, 0xcb)226 DEF_ASM_OP0(lret, 0xcb)
227ALT(DEF_ASM_OP1(lret, 0xca, 0, 0, OPT_IM16))227ALT(DEF_ASM_OP1(lret, 0xca, 0, 0, OPT_IM16))
228 228
@@ -394,11 +394,8 @@ ALT(DEF_ASM_OP2(cmovo, 0x0f40, 0, OPC_MODRM | OPC_TEST | OPC_WLX, OPT_REGW | OPT · 165 unmodified lines
394 /* movd shouldn't accept REG64, but AMD64 spec uses it for 32 and 64 bit394 /* movd shouldn't accept REG64, but AMD64 spec uses it for 32 and 64 bit
395 moves, so let's be compatible. */395 moves, so let's be compatible. */
396ALT(DEF_ASM_OP2(movd, 0x0f6e, 0, OPC_MODRM, OPT_EA | OPT_REG64, OPT_MMXSSE ))396ALT(DEF_ASM_OP2(movd, 0x0f6e, 0, OPC_MODRM, OPT_EA | OPT_REG64, OPT_MMXSSE ))
397 /* The 6F movq needs to come before the 6E, so that it's used for
398 mem->mmx/sse. 6E is disassembled by GAS as movd, so there would
399 be discrepancies in the asmtest.S. */
400ALT(DEF_ASM_OP2(movq, 0x0f6f, 0, OPC_MODRM, OPT_EA | OPT_MMX, OPT_MMX ))
401ALT(DEF_ASM_OP2(movq, 0x480f6e, 0, OPC_MODRM, OPT_REG64, OPT_MMXSSE ))397ALT(DEF_ASM_OP2(movq, 0x480f6e, 0, OPC_MODRM, OPT_REG64, OPT_MMXSSE ))
398ALT(DEF_ASM_OP2(movq, 0x0f6f, 0, OPC_MODRM, OPT_EA | OPT_MMX, OPT_MMX ))
402ALT(DEF_ASM_OP2(movd, 0x0f7e, 0, OPC_MODRM, OPT_MMXSSE, OPT_EA | OPT_REG32 ))399ALT(DEF_ASM_OP2(movd, 0x0f7e, 0, OPC_MODRM, OPT_MMXSSE, OPT_EA | OPT_REG32 ))
403ALT(DEF_ASM_OP2(movd, 0x0f7e, 0, OPC_MODRM, OPT_MMXSSE, OPT_EA | OPT_REG64 ))400ALT(DEF_ASM_OP2(movd, 0x0f7e, 0, OPC_MODRM, OPT_MMXSSE, OPT_EA | OPT_REG64 ))
404ALT(DEF_ASM_OP2(movq, 0x0f7f, 0, OPC_MODRM, OPT_MMX, OPT_EA | OPT_MMX ))401ALT(DEF_ASM_OP2(movq, 0x0f7f, 0, OPC_MODRM, OPT_MMX, OPT_EA | OPT_MMX ))

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