# HG changeset patch # User wilsonk@ubuntu # Date 1233690183 25200 # Node ID 8ff08961da7257d19098d9ec232308c0af6de2dc # Parent 1b10a9c6e3e89e63ae915ae90928e1a3e3dc32a2 Changed this file to add 'naked' and a couple other missing instructions diff -r 1b10a9c6e3e8 -r 8ff08961da72 gen/asm-x86-64.h --- 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;