Mercurial > projects > ldc
changeset 929:8ff08961da72
Changed this file to add 'naked' and a couple other missing instructions
author | wilsonk@ubuntu |
---|---|
date | Tue, 03 Feb 2009 12:43:03 -0700 |
parents | 1b10a9c6e3e8 |
children | b6647328d11e |
files | gen/asm-x86-64.h |
diffstat | 1 files changed, 5 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/asm-x86-64.h Tue Feb 03 12:35:00 2009 -0700 +++ b/gen/asm-x86-64.h Tue Feb 03 12:43:03 2009 -0700 @@ -616,6 +616,7 @@ { "add", Op_DstSrcNT }, //Op_UpdSrcF }, { "addpd", Op_DstSrcSSE }, { "addps", Op_DstSrcSSE }, + { "addq", Op_DstSrcSSE }, { "addsd", Op_DstSrcSSE }, { "addss", Op_DstSrcSSE }, { "addsubpd", Op_DstSrcSSE }, @@ -951,9 +952,9 @@ { "minss", Op_DstSrcSSE }, { "monitor", Op_0 }, { "mov", Op_DstSrc }, - { "movb", Op_DstSrcNT }, { "movapd", Op_DstSrcSSE }, { "movaps", Op_DstSrcSSE }, + { "movb", Op_DstSrcNT }, { "movd", Op_DstSrcNT }, // also mmx and sse { "movddup", Op_DstSrcSSE }, { "movdq2q", Op_DstSrcNT }, // mmx/sse @@ -962,6 +963,7 @@ { "movhlps", Op_DstSrcSSE }, { "movhpd", Op_DstSrcSSE }, { "movhps", Op_DstSrcSSE }, + { "movl", Op_DstSrc }, { "movlhps", Op_DstSrcSSE }, { "movlpd", Op_DstSrcSSE }, { "movlps", Op_DstSrcSSE }, @@ -994,6 +996,7 @@ { "mulsd", Op_DstSrcSSE }, { "mulss", Op_DstSrcSSE }, { "mwait", Op_0 }, + { "naked", Op_Naked }, { "neg", Op_UpdF }, { "nop", Op_0 }, { "not", Op_Upd }, @@ -1051,7 +1054,6 @@ { "pmulhw", Op_DstSrcMMX }, { "pmullw", Op_DstSrcMMX }, { "pmuludq", Op_DstSrcMMX }, // also sse - { "pop", Op_DstW }, { "popf", Op_SizedStack }, // rewrite the insn with a special case { "popfq", Op_SizedStack }, { "popq", Op_push }, @@ -1095,7 +1097,6 @@ { "punpckldq", Op_DstSrcMMX }, { "punpcklqdq",Op_DstSrcMMX }, { "punpcklwd", Op_DstSrcMMX }, - { "push", Op_push }, { "pushf", Op_SizedStack }, { "pushfq", Op_SizedStack }, { "pushq", Op_push }, @@ -1188,6 +1189,7 @@ { "sub", Op_UpdSrcF }, { "subpd", Op_DstSrcSSE }, { "subps", Op_DstSrcSSE }, + { "subq", Op_DstSrcSSE }, { "subsd", Op_DstSrcSSE }, { "subss", Op_DstSrcSSE }, { "swapgs", Op_DstSrcSSE }, @@ -1556,10 +1558,6 @@ break; } - // osx needs an extra underscore - if (global.params.os == OSMacOSX) - insnTemplate->writestring("_"); - // print out the mangle insnTemplate->writestring(vd->mangle()); vd->nakedUse = true;