be: remove remnants of machine description
[libfirm] / ir / be / ia32 / ia32_spec.pl
index 0b1381e..f907451 100644 (file)
@@ -1,30 +1,33 @@
-# Creation: 2005/10/19
-# $Id$
 # This is the specification for the ia32 assembler Firm-operations
 
 $arch = "ia32";
 
+$mode_xmm           = "mode_D";
+$mode_mmx           = "mode_D";
+$mode_fp87          = "ia32_mode_E";
+$mode_gp            = "mode_Iu";
+$mode_flags         = "mode_Iu";
+$mode_fpcw          = "ia32_mode_fpcw";
+
 # register types:
 $normal      =  0; # no special type
-$caller_save =  1; # caller save (register must be saved by the caller of a function)
-$callee_save =  2; # callee save (register must be saved by the called function)
-$ignore      =  4; # ignore (do not assign this register)
-$arbitrary   =  8; # emitter can choose an arbitrary register of this class
-$virtual     = 16; # the register is a virtual one
-$state       = 32; # register represents a state
+$ignore      =  1; # ignore (do not assign this register)
+$arbitrary   =  2; # emitter can choose an arbitrary register of this class
+$virtual     =  4; # the register is a virtual one
+$state       =  8; # register represents a state
 # NOTE: Last entry of each class is the largest Firm-Mode a register can hold
 %reg_classes = (
        gp => [
-               { name => "edx", type => $caller_save },
-               { name => "ecx", type => $caller_save },
-               { name => "eax", type => $caller_save },
-               { name => "ebx", type => $callee_save },
-               { name => "esi", type => $callee_save },
-               { name => "edi", type => $callee_save },
-               { name => "ebp", type => $callee_save },
+               { name => "edx" },
+               { name => "ecx" },
+               { name => "eax" },
+               { name => "ebx" },
+               { name => "esi" },
+               { name => "edi" },
+               { name => "ebp" },
                { name => "esp", type => $ignore },
                { name => "gp_NOREG", type => $ignore | $arbitrary | $virtual }, # we need a dummy register for NoReg nodes
-               { mode => "mode_Iu" }
+               { mode => $mode_gp }
        ],
        mmx => [
                { name => "mm0", type => $ignore },
@@ -35,31 +38,31 @@ $state       = 32; # register represents a state
                { name => "mm5", type => $ignore },
                { name => "mm6", type => $ignore },
                { name => "mm7", type => $ignore },
-               { mode => "mode_E", flags => "manual_ra" }
+               { mode => $mode_mmx, flags => "manual_ra" }
        ],
        xmm => [
-               { name => "xmm0", type => $caller_save },
-               { name => "xmm1", type => $caller_save },
-               { name => "xmm2", type => $caller_save },
-               { name => "xmm3", type => $caller_save },
-               { name => "xmm4", type => $caller_save },
-               { name => "xmm5", type => $caller_save },
-               { name => "xmm6", type => $caller_save },
-               { name => "xmm7", type => $caller_save },
+               { name => "xmm0" },
+               { name => "xmm1" },
+               { name => "xmm2" },
+               { name => "xmm3" },
+               { name => "xmm4" },
+               { name => "xmm5" },
+               { name => "xmm6" },
+               { name => "xmm7" },
                { name => "xmm_NOREG", type => $ignore | $virtual },     # we need a dummy register for NoReg nodes
-               { mode => "mode_E" }
+               { mode => $mode_xmm }
        ],
        vfp => [
-               { name => "vf0", type => $caller_save },
-               { name => "vf1", type => $caller_save },
-               { name => "vf2", type => $caller_save },
-               { name => "vf3", type => $caller_save },
-               { name => "vf4", type => $caller_save },
-               { name => "vf5", type => $caller_save },
-               { name => "vf6", type => $caller_save },
-               { name => "vf7", type => $caller_save },
+               { name => "vf0" },
+               { name => "vf1" },
+               { name => "vf2" },
+               { name => "vf3" },
+               { name => "vf4" },
+               { name => "vf5" },
+               { name => "vf6" },
+               { name => "vf7" },
                { name => "vfp_NOREG", type => $ignore | $arbitrary | $virtual }, # we need a dummy register for NoReg nodes
-               { mode => "mode_E" }
+               { mode => $mode_fp87 }
        ],
        st => [
                { name => "st0", realname => "st",    type => $ignore },
@@ -70,11 +73,11 @@ $state       = 32; # register represents a state
                { name => "st5", realname => "st(5)", type => $ignore },
                { name => "st6", realname => "st(6)", type => $ignore },
                { name => "st7", realname => "st(7)", type => $ignore },
-               { mode => "mode_E", flags => "manual_ra" }
+               { mode => $mode_fp87, flags => "manual_ra" }
        ],
        fp_cw => [      # the floating point control word
                { name => "fpcw", type => $ignore | $state },
-               { mode => "mode_fpcw", flags => "manual_ra|state" }
+               { mode => $mode_fpcw, flags => "manual_ra|state" }
        ],
        flags => [
                { name => "eflags", type => 0 },
@@ -141,7 +144,7 @@ sub ia32_custom_init_attr {
        my $res    = "";
 
        if(defined($node->{modified_flags})) {
-               $res .= "\tarch_irn_add_flags(res, arch_irn_flags_modify_flags);\n";
+               $res .= "\tarch_add_irn_flags(res, arch_irn_flags_modify_flags);\n";
        }
        if(defined($node->{am})) {
                my $am = $node->{am};
@@ -167,37 +170,41 @@ $custom_init_attr_func = \&ia32_custom_init_attr;
 
 %init_attr = (
        ia32_asm_attr_t =>
-               "\tinit_ia32_attributes(res, flags, in_reqs, exec_units, n_res);\n".
+               "\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);\n".
                "\tinit_ia32_x87_attributes(res);".
                "\tinit_ia32_asm_attributes(res);",
        ia32_attr_t     =>
-               "\tinit_ia32_attributes(res, flags, in_reqs, exec_units, n_res);",
+               "\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);",
        ia32_call_attr_t =>
-               "\tinit_ia32_attributes(res, flags, in_reqs, exec_units, n_res);\n".
+               "\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);\n".
                "\tinit_ia32_call_attributes(res, pop, call_tp);",
        ia32_condcode_attr_t =>
-               "\tinit_ia32_attributes(res, flags, in_reqs, exec_units, n_res);\n".
-               "\tinit_ia32_condcode_attributes(res, pnc);",
+               "\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);\n".
+               "\tinit_ia32_condcode_attributes(res, condition_code);",
+       ia32_switch_attr_t =>
+               "\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);\n".
+               "\tinit_ia32_switch_attributes(res, switch_table);",
        ia32_copyb_attr_t =>
-               "\tinit_ia32_attributes(res, flags, in_reqs, exec_units, n_res);\n".
+               "\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);\n".
                "\tinit_ia32_copyb_attributes(res, size);",
        ia32_immediate_attr_t =>
-               "\tinit_ia32_attributes(res, flags, in_reqs, exec_units, n_res);\n".
+               "\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);\n".
                "\tinit_ia32_immediate_attributes(res, symconst, symconst_sign, no_pic_adjust, offset);",
        ia32_x87_attr_t =>
-               "\tinit_ia32_attributes(res, flags, in_reqs, exec_units, n_res);\n".
+               "\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);\n".
                "\tinit_ia32_x87_attributes(res);",
        ia32_climbframe_attr_t =>
-               "\tinit_ia32_attributes(res, flags, in_reqs, exec_units, n_res);\n".
+               "\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);\n".
                "\tinit_ia32_climbframe_attributes(res, count);",
 );
 
 %compare_attr = (
-       ia32_asm_attr_t       => "ia32_compare_asm_attr",
+       ia32_asm_attr_t        => "ia32_compare_asm_attr",
        ia32_attr_t            => "ia32_compare_nodes_attr",
        ia32_call_attr_t       => "ia32_compare_call_attr",
        ia32_condcode_attr_t   => "ia32_compare_condcode_attr",
        ia32_copyb_attr_t      => "ia32_compare_copyb_attr",
+       ia32_switch_attr_t     => "ia32_compare_nodes_attr",
        ia32_immediate_attr_t  => "ia32_compare_immediate_attr",
        ia32_x87_attr_t        => "ia32_compare_x87_attr",
        ia32_climbframe_attr_t => "ia32_compare_climbframe_attr",
@@ -206,10 +213,6 @@ $custom_init_attr_func = \&ia32_custom_init_attr;
 %operands = (
 );
 
-$mode_xmm           = "mode_E";
-$mode_gp            = "mode_Iu";
-$mode_flags         = "mode_Iu";
-$mode_fpcw          = "mode_fpcw";
 $status_flags       = [ "CF", "PF", "AF", "ZF", "SF", "OF" ];
 $status_flags_wo_cf = [       "PF", "AF", "ZF", "SF", "OF" ];
 $fpcw_flags         = [ "FP_IM", "FP_DM", "FP_ZM", "FP_OM", "FP_UM", "FP_PM",
@@ -220,6 +223,7 @@ $fpcw_flags         = [ "FP_IM", "FP_DM", "FP_ZM", "FP_OM", "FP_UM", "FP_PM",
 Immediate => {
        state     => "pinned",
        op_flags  => [ "constlike" ],
+       irn_flags => [ "not_scheduled" ],
        reg_req   => { out => [ "gp_NOREG:I" ] },
        attr      => "ir_entity *symconst, int symconst_sign, int no_pic_adjust, long offset",
        attr_type => "ia32_immediate_attr_t",
@@ -306,14 +310,15 @@ Adc => {
 },
 
 l_Add => {
-       op_flags  => [ "constlike" ],
-       reg_req   => { in => [ "none", "none" ], out => [ "none" ] },
        ins       => [ "left", "right" ],
+       attr_type => "",
+       dump_func => "NULL",
 },
 
 l_Adc => {
-       reg_req   => { in => [ "none", "none", "none" ], out => [ "none" ] },
        ins       => [ "left", "right", "eflags" ],
+       attr_type => "",
+       dump_func => "NULL",
 },
 
 Mul => {
@@ -332,14 +337,10 @@ Mul => {
 },
 
 l_Mul => {
-       # we should not rematrialize this node. It produces 2 results and has
-       # very strict constraints
-       op_flags  => [ "constlike" ],
-       cmp_attr  => "return 1;",
-       reg_req   => { in => [ "none", "none" ],
-                      out => [ "none", "none", "none", "none" ] },
        ins       => [ "left", "right" ],
        outs      => [ "res_low", "flags", "M", "res_high" ],
+       attr_type => "",
+       dump_func => "NULL",
 },
 
 IMul => {
@@ -373,12 +374,10 @@ IMul1OP => {
 },
 
 l_IMul => {
-       op_flags  => [ "constlike" ],
-       cmp_attr  => "return 1;",
-       reg_req   => { in => [ "none", "none" ],
-                      out => [ "none", "none", "none", "none" ] },
        ins       => [ "left", "right" ],
        outs      => [ "res_low", "flags", "M", "res_high" ],
+       attr_type => "",
+       dump_func => "NULL",
 },
 
 And => {
@@ -552,7 +551,7 @@ SubMem8Bit => {
 Sbb => {
        state     => "exc_pinned",
        reg_req   => { in => [ "gp", "gp", "none", "gp", "gp", "flags" ],
-                      out => [ "in_r4 !in_r5", "flags", "none" ] },
+                      out => [ "in_r4", "flags", "none" ] },
        ins       => [ "base", "index", "mem", "minuend", "subtrahend", "eflags" ],
        outs      => [ "res", "flags", "M" ],
        am        => "source,binary",
@@ -576,22 +575,24 @@ Sbb0 => {
 },
 
 l_Sub => {
-       reg_req   => { in => [ "none", "none" ], out => [ "none" ] },
        ins       => [ "minuend", "subtrahend" ],
+       attr_type => "",
+       dump_func => "NULL",
 },
 
 l_Sbb => {
-       reg_req   => { in => [ "none", "none", "none" ], out => [ "none" ] },
        ins       => [ "minuend", "subtrahend", "eflags" ],
+       attr_type => "",
+       dump_func => "NULL",
 },
 
 IDiv => {
        op_flags  => [ "fragile", "labeled" ],
        state     => "exc_pinned",
        reg_req   => { in => [ "gp", "gp", "none", "gp", "eax", "edx" ],
-                      out => [ "eax", "flags", "none", "edx", "none" ] },
+                      out => [ "eax", "flags", "none", "edx", "none", "none" ] },
        ins       => [ "base", "index", "mem", "divisor", "dividend_low", "dividend_high" ],
-       outs      => [ "div_res", "flags", "M", "mod_res", "X_exc" ],
+       outs      => [ "div_res", "flags", "M", "mod_res", "X_regular", "X_except" ],
        am        => "source,unary",
        emit      => ". idiv%M %unop3",
        latency   => 25,
@@ -603,9 +604,9 @@ Div => {
        op_flags  => [ "fragile", "labeled" ],
        state     => "exc_pinned",
        reg_req   => { in => [ "gp", "gp", "none", "gp", "eax", "edx" ],
-                      out => [ "eax", "flags", "none", "edx", "none" ] },
+                      out => [ "eax", "flags", "none", "edx", "none", "none" ] },
        ins       => [ "base", "index", "mem", "divisor", "dividend_low", "dividend_high" ],
-       outs      => [ "div_res", "flags", "M", "mod_res", "X_exc" ],
+       outs      => [ "div_res", "flags", "M", "mod_res", "X_regular", "X_except" ],
        am        => "source,unary",
        emit      => ". div%M %unop3",
        latency   => 25,
@@ -638,12 +639,6 @@ ShlMem => {
        modified_flags => $status_flags
 },
 
-l_ShlDep => {
-       cmp_attr => "return 1;",
-       reg_req  => { in => [ "none", "none", "none" ], out => [ "none" ] },
-       ins      => [ "val", "count", "dep" ],
-},
-
 ShlD => {
        irn_flags => [ "rematerializable" ],
        reg_req   => { in => [ "gp", "gp", "ecx" ],
@@ -657,12 +652,6 @@ ShlD => {
        modified_flags => $status_flags
 },
 
-l_ShlD => {
-       cmp_attr  => "return 1;",
-       reg_req  => { in => [ "none", "none", "none" ], out => [ "none" ] },
-       ins       => [ "val_high", "val_low", "count" ],
-},
-
 Shr => {
        irn_flags => [ "rematerializable" ],
        reg_req   => { in => [ "gp", "ecx" ],
@@ -688,12 +677,6 @@ ShrMem => {
        modified_flags => $status_flags
 },
 
-l_ShrDep => {
-       cmp_attr  => "return 1;",
-       reg_req   => { in => [ "none", "none", "none" ], out => [ "none" ] },
-       ins       => [ "val", "count", "dep" ],
-},
-
 ShrD => {
        irn_flags => [ "rematerializable" ],
        reg_req   => { in => [ "gp", "gp", "ecx" ],
@@ -707,12 +690,6 @@ ShrD => {
        modified_flags => $status_flags
 },
 
-l_ShrD => {
-       cmp_attr  => "return 1;",
-       reg_req   => { in => [ "none", "none", "none" ], out => [ "none" ] },
-       ins       => [ "val_high", "val_low", "count" ],
-},
-
 Sar => {
        irn_flags => [ "rematerializable" ],
        reg_req   => { in => [ "gp", "ecx" ],
@@ -738,12 +715,6 @@ SarMem => {
        modified_flags => $status_flags
 },
 
-l_SarDep => {
-       cmp_attr  => "return 1;",
-       ins       => [ "val", "count", "dep" ],
-       reg_req   => { in => [ "none", "none", "none" ], out => [ "none" ] },
-},
-
 Ror => {
        irn_flags => [ "rematerializable" ],
        reg_req   => { in => [ "gp", "ecx" ],
@@ -931,9 +902,8 @@ Cmp => {
        outs      => [ "eflags", "unused", "M" ],
        am        => "source,binary",
        emit      => '. cmp%M %binop',
-       attr      => "int ins_permuted, int cmp_unsigned",
-       init_attr => "attr->data.ins_permuted   = ins_permuted;\n".
-                    "\tattr->data.cmp_unsigned = cmp_unsigned;\n",
+       attr      => "bool ins_permuted",
+       init_attr => "attr->data.ins_permuted   = ins_permuted;",
        latency   => 1,
        units     => [ "GP" ],
        mode      => $mode_flags,
@@ -949,15 +919,28 @@ Cmp8Bit => {
        outs      => [ "eflags", "unused", "M" ],
        am        => "source,binary",
        emit      => '. cmpb %binop',
-       attr      => "int ins_permuted, int cmp_unsigned",
-       init_attr => "attr->data.ins_permuted   = ins_permuted;\n".
-                    "\tattr->data.cmp_unsigned = cmp_unsigned;\n",
+       attr      => "bool ins_permuted",
+       init_attr => "attr->data.ins_permuted   = ins_permuted;",
        latency   => 1,
        units     => [ "GP" ],
        mode      => $mode_flags,
        modified_flags => $status_flags
 },
 
+XorHighLow => {
+       irn_flags => [ "rematerializable" ],
+       state     => "exc_pinned",
+       reg_req   => { in => [ "eax ebx ecx edx" ],
+                      out => [ "in_r1", "flags" ] },
+       emit      => '. xorb %SH0, %SB0',
+       ins       => [ "value" ],
+       outs      => [ "res", "flags" ],
+       units     => [ "GP" ],
+       latency   => 1,
+       mode      => $mode_gp,
+       modified_flags => $status_flags,
+},
+
 Test => {
        irn_flags => [ "rematerializable" ],
        state     => "exc_pinned",
@@ -967,9 +950,8 @@ Test => {
        outs      => [ "eflags", "unused", "M" ],
        am        => "source,binary",
        emit      => '. test%M %binop',
-       attr      => "int ins_permuted, int cmp_unsigned",
-       init_attr => "attr->data.ins_permuted = ins_permuted;\n".
-                    "\tattr->data.cmp_unsigned = cmp_unsigned;\n",
+       attr      => "bool ins_permuted",
+       init_attr => "attr->data.ins_permuted = ins_permuted;",
        latency   => 1,
        units     => [ "GP" ],
        mode      => $mode_flags,
@@ -985,9 +967,8 @@ Test8Bit => {
        outs      => [ "eflags", "unused", "M" ],
        am        => "source,binary",
        emit      => '. testb %binop',
-       attr      => "int ins_permuted, int cmp_unsigned",
-       init_attr => "attr->data.ins_permuted = ins_permuted;\n".
-                    "\tattr->data.cmp_unsigned = cmp_unsigned;\n",
+       attr      => "bool ins_permuted",
+       init_attr => "attr->data.ins_permuted = ins_permuted;",
        latency   => 1,
        units     => [ "GP" ],
        mode      => $mode_flags,
@@ -1000,12 +981,12 @@ Setcc => {
        ins       => [ "eflags" ],
        outs      => [ "res" ],
        attr_type => "ia32_condcode_attr_t",
-       attr      => "pn_Cmp pnc",
+       attr      => "ia32_condition_code_t condition_code",
        # The way we handle Setcc with float nodes (potentially) destroys the flags
        # (when we emit the setX; setp; orb and the setX;setnp;andb sequences)
        init_attr => "set_ia32_ls_mode(res, mode_Bu);\n"
-               . "\tif ((pnc & ia32_pn_Cmp_float) && ((pnc & 0xf) != pn_Cmp_Uo) && ((pnc & 0xf) != pn_Cmp_Leg)) {\n"
-               . "\t\tarch_irn_add_flags(res, arch_irn_flags_modify_flags);\n"
+               . "\tif (condition_code & ia32_cc_additional_float_cases) {\n"
+               . "\t\tarch_add_irn_flags(res, arch_irn_flags_modify_flags);\n"
                . "\t\t/* attr->latency = 3; */\n"
                . "\t}\n",
        latency   => 1,
@@ -1019,7 +1000,7 @@ SetccMem => {
        reg_req   => { in => [ "gp", "gp", "none", "eflags" ], out => [ "none" ] },
        ins       => [ "base", "index", "mem","eflags" ],
        attr_type => "ia32_condcode_attr_t",
-       attr      => "pn_Cmp pnc",
+       attr      => "ia32_condition_code_t condition_code",
        init_attr => "set_ia32_ls_mode(res, mode_Bu);\n",
        emit      => '. set%CMP3 %AM',
        latency   => 1,
@@ -1038,7 +1019,7 @@ CMovcc => {
        outs      => [ "res", "flags", "M" ],
        am        => "source,binary",
        attr_type => "ia32_condcode_attr_t",
-       attr      => "pn_Cmp pnc",
+       attr      => "ia32_condition_code_t condition_code",
        latency   => 1,
        units     => [ "GP" ],
        mode      => $mode_gp,
@@ -1051,7 +1032,7 @@ Jcc => {
        ins       => [ "eflags" ],
        outs      => [ "false", "true" ],
        attr_type => "ia32_condcode_attr_t",
-       attr      => "pn_Cmp pnc",
+       attr      => "ia32_condition_code_t condition_code",
        latency   => 2,
        units     => [ "BRANCH" ],
 },
@@ -1059,14 +1040,13 @@ Jcc => {
 SwitchJmp => {
        state     => "pinned",
        op_flags  => [ "labeled", "cfopcode", "forking" ],
-       reg_req   => { in => [ "gp" ] },
-       mode      => "mode_T",
-       attr_type => "ia32_condcode_attr_t",
-       attr      => "long pnc",
-       latency   => 3,
+       reg_req   => { in => [ "gp", "gp" ] },
+       ins       => [ "base", "index" ],
+       out_arity => "variable",
+       attr_type => "ia32_switch_attr_t",
+       attr      => "const ir_switch_table *switch_table",
+       latency   => 2,
        units     => [ "BRANCH" ],
-       modified_flags => $status_flags,
-       init_attr => "info->out_infos = NULL;", # XXX ugly hack for out requirements
 },
 
 Jmp => {
@@ -1081,7 +1061,7 @@ Jmp => {
 
 IJmp => {
        state     => "pinned",
-       op_flags  => [ "cfopcode" ],
+       op_flags  => [ "cfopcode", "unknown_jump" ],
        reg_req   => { in => [ "gp", "gp", "none", "gp" ] },
        ins       => [ "base", "index", "mem", "target" ],
        am        => "source,unary",
@@ -1124,6 +1104,7 @@ GetEIP => {
 NoReg_GP => {
        state     => "pinned",
        op_flags  => [ "constlike", "dump_noblock", "dump_noinput" ],
+       irn_flags => [ "not_scheduled" ],
        reg_req   => { out => [ "gp_NOREG:I" ] },
        units     => [],
        emit      => "",
@@ -1134,10 +1115,11 @@ NoReg_GP => {
 NoReg_VFP => {
        state     => "pinned",
        op_flags  => [ "constlike", "dump_noblock", "dump_noinput" ],
+       irn_flags => [ "not_scheduled" ],
        reg_req   => { out => [ "vfp_NOREG:I" ] },
        units     => [],
        emit      => "",
-       mode      => "mode_E",
+       mode      => $mode_fp87,
        latency   => 0,
        attr_type => "ia32_x87_attr_t",
 },
@@ -1145,16 +1127,18 @@ NoReg_VFP => {
 NoReg_XMM => {
        state     => "pinned",
        op_flags  => [ "constlike", "dump_noblock", "dump_noinput" ],
+       irn_flags => [ "not_scheduled" ],
        reg_req   => { out => [ "xmm_NOREG:I" ] },
        units     => [],
        emit      => "",
        latency   => 0,
-       mode      => "mode_E"
+       mode      => $mode_xmm,
 },
 
 ChangeCW => {
        state     => "pinned",
        op_flags  => [ "constlike" ],
+       irn_flags => [ "not_scheduled" ],
        reg_req   => { out => [ "fpcw:I" ] },
        mode      => $mode_fpcw,
        latency   => 3,
@@ -1163,7 +1147,7 @@ ChangeCW => {
 },
 
 FldCW => {
-       op_flags  => [ "fragile", "labeled" ],
+       op_flags  => [ "labeled" ],
        state     => "pinned",
        reg_req   => { in => [ "gp", "gp", "none" ], out => [ "fpcw:I" ] },
        ins       => [ "base", "index", "mem" ],
@@ -1175,7 +1159,7 @@ FldCW => {
 },
 
 FnstCW => {
-       op_flags  => [ "fragile", "labeled" ],
+       op_flags  => [ "labeled" ],
        state     => "pinned",
        reg_req   => { in => [ "gp", "gp", "none", "fp_cw" ], out => [ "none" ] },
        ins       => [ "base", "index", "mem", "fpcw" ],
@@ -1186,7 +1170,7 @@ FnstCW => {
 },
 
 FnstCWNOP => {
-       op_flags  => [ "fragile", "labeled" ],
+       op_flags  => [ "labeled" ],
        state     => "pinned",
        reg_req   => { in => [ "fp_cw" ], out => [ "none" ] },
        ins       => [ "fpcw" ],
@@ -1214,9 +1198,9 @@ Load => {
        op_flags  => [ "fragile", "labeled" ],
        state     => "exc_pinned",
        reg_req   => { in => [ "gp", "gp", "none" ],
-                      out => [ "gp", "none", "none", "none" ] },
+                      out => [ "gp", "none", "none", "none", "none" ] },
        ins       => [ "base", "index", "mem" ],
-       outs      => [ "res", "unused", "M", "X_exc" ],
+       outs      => [ "res", "unused", "M", "X_regular", "X_except" ],
        latency   => 0,
        emit      => ". mov%EX%.l %AM, %D0",
        units     => [ "GP" ],
@@ -1225,25 +1209,25 @@ Load => {
 Store => {
        op_flags  => [ "fragile", "labeled" ],
        state     => "exc_pinned",
-       reg_req   => { in => [ "gp", "gp", "none", "gp" ], out => [ "none", "none" ] },
+       reg_req   => { in => [ "gp", "gp", "none", "gp" ],
+                      out => [ "none", "none", "none" ] },
        ins       => [ "base", "index", "mem", "val" ],
-       outs      => [ "M", "X_exc" ],
+       outs      => [ "M", "X_regular", "X_except" ],
        emit      => '. mov%M %SI3, %AM',
        latency   => 2,
        units     => [ "GP" ],
-       mode      => "mode_M",
 },
 
 Store8Bit => {
        op_flags  => [ "fragile", "labeled" ],
        state     => "exc_pinned",
-       reg_req   => { in => [ "gp", "gp", "none", "eax ebx ecx edx" ], out => ["none", "none" ] },
+       reg_req   => { in => [ "gp", "gp", "none", "eax ebx ecx edx" ],
+                      out => ["none", "none", "none" ] },
        ins       => [ "base", "index", "mem", "val" ],
-       outs      => [ "M", "X_exc" ],
+       outs      => [ "M", "X_regular", "X_except" ],
        emit      => '. mov%M %SB3, %AM',
        latency   => 2,
        units     => [ "GP" ],
-       mode      => "mode_M",
 },
 
 Lea => {
@@ -1301,6 +1285,17 @@ PopEbp => {
        units     => [ "GP" ],
 },
 
+CopyEbpEsp => {
+       state     => "exc_pinned",
+       reg_req   => { in => [ "ebp" ], out => [ "esp:I|S" ] },
+       ins       => [ "ebp" ],
+       outs      => [ "esp" ],
+       emit      => '. movl %S0, %D0',
+       latency   => 1,
+       units     => [ "GP" ],
+       mode      => $mode_gp,
+},
+
 PopMem => {
        state     => "exc_pinned",
        reg_req   => { in => [ "gp", "gp", "none", "esp" ], out => [ "none", "none", "none", "esp:I|S" ] },
@@ -1325,6 +1320,7 @@ Leave => {
        outs      => [ "frame", "stack" ],
        latency   => 3,
        units     => [ "GP" ],
+       state     => "exc_pinned",
 },
 
 AddSP => {
@@ -1364,6 +1360,8 @@ LdTls => {
        irn_flags => [ "rematerializable" ],
        reg_req   => { out => [ "gp" ] },
        units     => [ "GP" ],
+       emit      => ". movl %%gs:0, %D0",
+       mode      => $mode_gp,
        latency   => 1,
 },
 
@@ -1431,13 +1429,14 @@ Popcnt => {
 },
 
 Call => {
+       op_flags  => [ "fragile" ],
        state     => "exc_pinned",
        reg_req   => {
                in  => [ "gp", "gp", "none", "gp", "esp", "fpcw", "eax", "ecx", "edx" ],
-               out => [ "esp:I|S", "fpcw:I", "none", "eax", "ecx", "edx", "vf0", "vf1", "vf2", "vf3", "vf4", "vf5", "vf6", "vf7", "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7" ]
+               out => [ "esp:I|S", "fpcw:I", "none", "eax", "ecx", "edx", "vf0", "vf1", "vf2", "vf3", "vf4", "vf5", "vf6", "vf7", "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7", "none", "none" ]
        },
        ins       => [ "base", "index", "mem", "addr", "stack", "fpcw", "eax", "ecx", "edx" ],
-       outs      => [ "stack", "fpcw", "M", "eax", "ecx", "edx", "vf0", "vf1", "vf2", "vf3", "vf4", "vf5", "vf6", "vf7", "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7" ],
+       outs      => [ "stack", "fpcw", "M", "eax", "ecx", "edx", "vf0", "vf1", "vf2", "vf3", "vf4", "vf5", "vf6", "vf7", "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7", "X_regular", "X_except" ],
        attr_type => "ia32_call_attr_t",
        attr      => "unsigned pop, ir_type *call_tp",
        am        => "source,unary",
@@ -1551,7 +1550,7 @@ Inport => {
 # Intel style prefetching
 #
 Prefetch0 => {
-       op_flags  => [ "fragile", "labeled" ],
+       op_flags  => [ "labeled" ],
        state     => "exc_pinned",
        reg_req   => { in => [ "gp", "gp", "none" ], out => [ "none" ] },
        ins       => [ "base", "index", "mem" ],
@@ -1562,7 +1561,7 @@ Prefetch0 => {
 },
 
 Prefetch1 => {
-       op_flags  => [ "fragile", "labeled" ],
+       op_flags  => [ "labeled" ],
        state     => "exc_pinned",
        reg_req   => { in => [ "gp", "gp", "none" ], out => [ "none" ] },
        ins       => [ "base", "index", "mem" ],
@@ -1573,7 +1572,7 @@ Prefetch1 => {
 },
 
 Prefetch2 => {
-       op_flags  => [ "fragile", "labeled" ],
+       op_flags  => [ "labeled" ],
        state     => "exc_pinned",
        reg_req   => { in => [ "gp", "gp", "none" ], out => [ "none" ] },
        ins       => [ "base", "index", "mem" ],
@@ -1584,7 +1583,7 @@ Prefetch2 => {
 },
 
 PrefetchNTA => {
-       op_flags  => [ "fragile", "labeled" ],
+       op_flags  => [ "labeled" ],
        state     => "exc_pinned",
        reg_req   => { in => [ "gp", "gp", "none" ], out => [ "none" ] },
        ins       => [ "base", "index", "mem" ],
@@ -1598,7 +1597,7 @@ PrefetchNTA => {
 # 3DNow! prefetch instructions
 #
 Prefetch => {
-       op_flags  => [ "fragile", "labeled" ],
+       op_flags  => [ "labeled" ],
        state     => "exc_pinned",
        reg_req   => { in => [ "gp", "gp", "none" ], out => [ "none" ] },
        ins       => [ "base", "index", "mem" ],
@@ -1609,7 +1608,7 @@ Prefetch => {
 },
 
 PrefetchW => {
-       op_flags  => [ "fragile", "labeled" ],
+       op_flags  => [ "labeled" ],
        state     => "exc_pinned",
        reg_req   => { in => [ "gp", "gp", "none" ], out => [ "none" ] },
        ins       => [ "base", "index", "mem" ],
@@ -1844,7 +1843,7 @@ Ucomi => {
        ins       => [ "base", "index", "mem", "left", "right" ],
        outs      => [ "flags" ],
        am        => "source,binary",
-       attr      => "int ins_permuted",
+       attr      => "bool ins_permuted",
        init_attr => "attr->data.ins_permuted = ins_permuted;",
        emit      => ' .ucomi%XXM %binop',
        latency   => 3,
@@ -1857,9 +1856,9 @@ xLoad => {
        op_flags  => [ "fragile", "labeled" ],
        state     => "exc_pinned",
        reg_req   => { in => [ "gp", "gp", "none" ],
-                      out => [ "xmm", "none", "none", "none" ] },
+                      out => [ "xmm", "none", "none", "none", "none" ] },
        ins       => [ "base", "index", "mem" ],
-       outs      => [ "res", "unused", "M", "X_exc" ],
+       outs      => [ "res", "unused", "M", "X_regular", "X_except" ],
        emit      => '. mov%XXM %AM, %D0',
        attr      => "ir_mode *load_mode",
        init_attr => "attr->ls_mode = load_mode;",
@@ -1870,29 +1869,29 @@ xLoad => {
 xStore => {
        op_flags => [ "fragile", "labeled" ],
        state    => "exc_pinned",
-       reg_req  => { in => [ "gp", "gp", "none", "xmm" ], out => [ "none", "none" ] },
+       reg_req  => { in => [ "gp", "gp", "none", "xmm" ],
+                     out => [ "none", "none", "none" ] },
        ins       => [ "base", "index", "mem", "val" ],
-       outs      => [ "M", "X_exc" ],
+       outs      => [ "M", "X_regular", "X_except" ],
        emit     => '. mov%XXM %S3, %AM',
        latency  => 0,
        units    => [ "SSE" ],
-       mode     => "mode_M",
 },
 
 xStoreSimple => {
        op_flags => [ "fragile", "labeled" ],
        state    => "exc_pinned",
-       reg_req  => { in => [ "gp", "gp", "none", "xmm" ], out => [ "none" ] },
+       reg_req  => { in => [ "gp", "gp", "none", "xmm" ],
+                     out => [ "none", "none", "none" ] },
        ins      => [ "base", "index", "mem", "val" ],
-       outs     => [ "M" ],
+       outs     => [ "M", "X_regular", "X_except" ],
        emit     => '. mov%XXM %S3, %AM',
        latency  => 0,
        units    => [ "SSE" ],
-       mode     => "mode_M",
 },
 
 CvtSI2SS => {
-       op_flags => [ "fragile", "labeled" ],
+       op_flags => [ "labeled" ],
        state     => "exc_pinned",
        reg_req  => { in => [ "gp", "gp", "none", "gp" ], out => [ "xmm" ] },
        ins      => [ "base", "index", "mem", "val" ],
@@ -1904,7 +1903,7 @@ CvtSI2SS => {
 },
 
 CvtSI2SD => {
-       op_flags => [ "fragile", "labeled" ],
+       op_flags => [ "labeled" ],
        state     => "exc_pinned",
        reg_req  => { in => [ "gp", "gp", "none", "gp" ], out => [ "xmm" ] },
        ins      => [ "base", "index", "mem", "val" ],
@@ -1917,29 +1916,29 @@ CvtSI2SD => {
 
 
 l_LLtoFloat => {
-       op_flags => [ "fragile", "labeled" ],
-       cmp_attr => "return 1;",
        ins      => [ "val_high", "val_low" ],
-       reg_req  => { in => [ "none", "none" ], out => [ "none" ] }
+       attr_type => "",
+       dump_func => "NULL",
 },
 
 l_FloattoLL => {
-       op_flags => [ "fragile", "labeled" ],
-       cmp_attr => "return 1;",
        ins      => [ "val" ],
        outs     => [ "res_high", "res_low" ],
-       reg_req  => { in => [ "none" ], out => [ "none", "none" ] }
+       attr_type => "",
+       dump_func => "NULL",
 },
 
 CopyB => {
        op_flags  => [ "fragile" ],
        state     => "pinned",
-       reg_req   => { in => [ "edi", "esi", "ecx", "none" ], out => [ "edi", "esi", "ecx", "none" ] },
-       outs      => [ "DST", "SRC", "CNT", "M" ],
+       reg_req   => { in => [ "edi", "esi", "ecx", "none" ],
+                      out => [ "edi", "esi", "ecx", "none", "none", "none" ] },
+       ins       => [ "dest", "source", "count", "mem" ],
+       outs      => [ "dest", "source", "count", "M", "X_regular", "X_except" ],
        attr_type => "ia32_copyb_attr_t",
        attr      => "unsigned size",
        units     => [ "GP" ],
-       latency  => 3,
+       latency   => 3,
 # we don't care about this flag, so no need to mark this node
 #      modified_flags => [ "DF" ]
 },
@@ -1947,12 +1946,14 @@ CopyB => {
 CopyB_i => {
        op_flags  => [ "fragile" ],
        state     => "pinned",
-       reg_req   => { in => [ "edi", "esi", "none" ], out => [  "edi", "esi", "none" ] },
-       outs      => [ "DST", "SRC", "M" ],
+       reg_req   => { in => [ "edi", "esi", "none" ],
+                      out => [  "edi", "esi", "none", "none", "none" ] },
+       ins       => [ "dest", "source", "mem" ],
+       outs      => [ "dest", "source", "M", "X_regular", "X_except" ],
        attr_type => "ia32_copyb_attr_t",
        attr      => "unsigned size",
        units     => [ "GP" ],
-       latency  => 3,
+       latency   => 3,
 # we don't care about this flag, so no need to mark this node
 #      modified_flags => [ "DF" ]
 },
@@ -1969,11 +1970,12 @@ Cwtl => {
 },
 
 Conv_I2I => {
+       op_flags  => [ "fragile" ],
        state     => "exc_pinned",
        reg_req   => { in => [ "gp", "gp", "none", "gp" ],
-                      out => [ "gp", "none", "none" ] },
+                      out => [ "gp", "none", "none", "none", "none" ] },
        ins       => [ "base", "index", "mem", "val" ],
-       outs      => [ "res", "flags", "M" ],
+       outs      => [ "res", "flags", "M", "X_regular", "X_except" ],
        am        => "source,unary",
        units     => [ "GP" ],
        latency   => 1,
@@ -1983,11 +1985,12 @@ Conv_I2I => {
 },
 
 Conv_I2I8Bit => {
+       op_flags  => [ "fragile" ],
        state     => "exc_pinned",
        reg_req   => { in => [ "gp", "gp", "none", "eax ebx ecx edx" ],
-                      out => [ "gp", "none", "none" ] },
+                      out => [ "gp", "none", "none", "none", "none" ] },
        ins       => [ "base", "index", "mem", "val" ],
-       outs      => [ "res", "flags", "M" ],
+       outs      => [ "res", "flags", "M", "X_regular", "X_except" ],
        am        => "source,unary",
        units     => [ "GP" ],
        latency   => 1,
@@ -2039,7 +2042,7 @@ vfadd => {
        am        => "source,binary",
        latency   => 4,
        units     => [ "VFP" ],
-       mode      => "mode_E",
+       mode      => $mode_fp87,
        attr_type => "ia32_x87_attr_t",
 },
 
@@ -2053,7 +2056,7 @@ vfmul => {
        am        => "source,binary",
        latency   => 4,
        units     => [ "VFP" ],
-       mode      => "mode_E",
+       mode      => $mode_fp87,
        attr_type => "ia32_x87_attr_t",
 },
 
@@ -2067,7 +2070,7 @@ vfsub => {
        am        => "source,binary",
        latency   => 4,
        units     => [ "VFP" ],
-       mode      => "mode_E",
+       mode      => $mode_fp87,
        attr_type => "ia32_x87_attr_t",
 },
 
@@ -2088,7 +2091,7 @@ vfprem => {
        ins       => [ "left", "right", "fpcw" ],
        latency   => 20,
        units     => [ "VFP" ],
-       mode      => "mode_E",
+       mode      => $mode_fp87,
        attr_type => "ia32_x87_attr_t",
 },
 
@@ -2098,7 +2101,7 @@ vfabs => {
        ins       => [ "value" ],
        latency   => 2,
        units     => [ "VFP" ],
-       mode      => "mode_E",
+       mode      => $mode_fp87,
        attr_type => "ia32_x87_attr_t",
 },
 
@@ -2108,7 +2111,7 @@ vfchs => {
        ins       => [ "value" ],
        latency   => 2,
        units     => [ "VFP" ],
-       mode      => "mode_E",
+       mode      => $mode_fp87,
        attr_type => "ia32_x87_attr_t",
 },
 
@@ -2117,9 +2120,9 @@ vfld => {
        op_flags  => [ "fragile", "labeled" ],
        state     => "exc_pinned",
        reg_req   => { in => [ "gp", "gp", "none" ],
-                      out => [ "vfp", "none", "none", "none" ] },
+                      out => [ "vfp", "none", "none", "none", "none" ] },
        ins       => [ "base", "index", "mem" ],
-       outs      => [ "res", "unused", "M", "X_exc" ],
+       outs      => [ "res", "unused", "M", "X_regular", "X_except" ],
        attr      => "ir_mode *load_mode",
        init_attr => "attr->attr.ls_mode = load_mode;",
        latency   => 2,
@@ -2132,14 +2135,13 @@ vfst => {
        op_flags  => [ "fragile", "labeled" ],
        state     => "exc_pinned",
        reg_req   => { in => [ "gp", "gp", "none", "vfp" ],
-                      out => [ "none", "none" ] },
+                      out => [ "none", "none", "none" ] },
        ins       => [ "base", "index", "mem", "val" ],
-       outs      => [ "M", "X_exc" ],
+       outs      => [ "M", "X_regular", "X_except" ],
        attr      => "ir_mode *store_mode",
        init_attr => "attr->attr.ls_mode = store_mode;",
        latency   => 2,
        units     => [ "VFP" ],
-       mode      => "mode_M",
        attr_type => "ia32_x87_attr_t",
 },
 
@@ -2155,22 +2157,25 @@ vfild => {
 },
 
 vfist => {
+       op_flags  => [ "fragile" ],
        state     => "exc_pinned",
-       reg_req   => { in => [ "gp", "gp", "none", "vfp", "fpcw" ], out => [ "none" ] },
+       reg_req   => { in => [ "gp", "gp", "none", "vfp", "fpcw" ],
+                      out => [ "none", "none", "none", "none" ] },
        ins       => [ "base", "index", "mem", "val", "fpcw" ],
-       outs      => [ "M" ],
+       outs      => [ "dummy", "M", "X_regular", "X_except" ],
        latency   => 4,
        units     => [ "VFP" ],
-       mode      => "mode_M",
        attr_type => "ia32_x87_attr_t",
 },
 
 # SSE3 fisttp instruction
 vfisttp => {
+       op_flags  => [ "fragile" ],
        state     => "exc_pinned",
-       reg_req   => { in => [ "gp", "gp", "none", "vfp" ], out => [ "in_r4", "none" ]},
+       reg_req   => { in => [ "gp", "gp", "none", "vfp" ],
+                      out => [ "in_r4", "none", "none", "none" ]},
        ins       => [ "base", "index", "mem", "val" ],
-       outs      => [ "res", "M" ],
+       outs      => [ "res", "M", "X_regular", "X_except" ],
        latency   => 4,
        units     => [ "VFP" ],
        attr_type => "ia32_x87_attr_t",
@@ -2182,7 +2187,7 @@ vfldz => {
        outs      => [ "res" ],
        latency   => 4,
        units     => [ "VFP" ],
-       mode      => "mode_E",
+       mode      => $mode_fp87,
        attr_type => "ia32_x87_attr_t",
 },
 
@@ -2192,7 +2197,7 @@ vfld1 => {
        outs      => [ "res" ],
        latency   => 4,
        units     => [ "VFP" ],
-       mode      => "mode_E",
+       mode      => $mode_fp87,
        attr_type => "ia32_x87_attr_t",
 },
 
@@ -2202,7 +2207,7 @@ vfldpi => {
        outs      => [ "res" ],
        latency   => 4,
        units     => [ "VFP" ],
-       mode      => "mode_E",
+       mode      => $mode_fp87,
        attr_type => "ia32_x87_attr_t",
 },
 
@@ -2212,7 +2217,7 @@ vfldln2 => {
        outs      => [ "res" ],
        latency   => 4,
        units     => [ "VFP" ],
-       mode      => "mode_E",
+       mode      => $mode_fp87,
        attr_type => "ia32_x87_attr_t",
 },
 
@@ -2222,7 +2227,7 @@ vfldlg2 => {
        outs      => [ "res" ],
        latency   => 4,
        units     => [ "VFP" ],
-       mode      => "mode_E",
+       mode      => $mode_fp87,
        attr_type => "ia32_x87_attr_t",
 },
 
@@ -2232,7 +2237,7 @@ vfldl2t => {
        outs      => [ "res" ],
        latency   => 4,
        units     => [ "VFP" ],
-       mode      => "mode_E",
+       mode      => $mode_fp87,
        attr_type => "ia32_x87_attr_t",
 },
 
@@ -2242,7 +2247,7 @@ vfldl2e => {
        outs      => [ "res" ],
        latency   => 4,
        units     => [ "VFP" ],
-       mode      => "mode_E",
+       mode      => $mode_fp87,
        attr_type => "ia32_x87_attr_t",
 },
 
@@ -2253,7 +2258,7 @@ vFucomFnstsw => {
        reg_req   => { in => [ "vfp", "vfp" ], out => [ "eax" ] },
        ins       => [ "left", "right" ],
        outs      => [ "flags" ],
-       attr      => "int ins_permuted",
+       attr      => "bool ins_permuted",
        init_attr => "attr->attr.data.ins_permuted = ins_permuted;",
        latency   => 3,
        units     => [ "VFP" ],
@@ -2266,7 +2271,7 @@ vFucomi => {
        reg_req   => { in => [ "vfp", "vfp" ], out => [ "eflags" ] },
        ins       => [ "left", "right" ],
        outs      => [ "flags" ],
-       attr      => "int ins_permuted",
+       attr      => "bool ins_permuted",
        init_attr => "attr->attr.data.ins_permuted = ins_permuted;",
        latency   => 3,
        units     => [ "VFP" ],
@@ -2279,7 +2284,7 @@ vFtstFnstsw => {
        reg_req   => { in => [ "vfp" ], out => [ "eax" ] },
        ins       => [ "left" ],
        outs      => [ "flags" ],
-       attr      => "int ins_permuted",
+       attr      => "bool ins_permuted",
        init_attr => "attr->attr.data.ins_permuted = ins_permuted;",
        latency   => 3,
        units     => [ "VFP" ],
@@ -2438,7 +2443,7 @@ fchs => {
 
 fld => {
        irn_flags => [ "rematerializable" ],
-       op_flags  => [ "fragile", "labeled" ],
+       op_flags  => [ "labeled" ],
        state     => "exc_pinned",
        emit      => '. fld%XM %AM',
        attr_type => "ia32_x87_attr_t",
@@ -2448,7 +2453,7 @@ fld => {
 
 fst => {
        irn_flags => [ "rematerializable" ],
-       op_flags  => [ "fragile", "labeled" ],
+       op_flags  => [ "labeled" ],
        state     => "exc_pinned",
        emit      => '. fst%XM %AM',
        mode      => "mode_M",
@@ -2459,7 +2464,7 @@ fst => {
 
 fstp => {
        irn_flags => [ "rematerializable" ],
-       op_flags  => [ "fragile", "labeled" ],
+       op_flags  => [ "labeled" ],
        state     => "exc_pinned",
        emit      => '. fstp%XM %AM',
        mode      => "mode_M",
@@ -2690,9 +2695,11 @@ FtstFnstsw => {
 xxLoad => {
        op_flags  => [ "fragile", "labeled" ],
        state     => "exc_pinned",
-       reg_req   => { in => [ "gp", "gp", "none" ], out => [ "xmm", "none" ] },
+       reg_req   => { in => [ "gp", "gp", "none" ],
+                      out => [ "xmm", "none", "none", "none" ] },
        emit      => '. movdqu %D0, %AM',
-       outs      => [ "res", "M" ],
+       ins       => [ "base", "index", "mem" ],
+       outs      => [ "res", "M", "X_regular", "X_except" ],
        units     => [ "SSE" ],
        latency   => 1,
 },
@@ -2700,12 +2707,13 @@ xxLoad => {
 xxStore => {
        op_flags => [ "fragile", "labeled" ],
        state    => "exc_pinned",
-       reg_req  => { in => [ "gp", "gp", "none", "xmm" ] },
+       reg_req  => { in => [ "gp", "gp", "none", "xmm" ],
+                     out => [ "none", "none", "none" ] },
        ins      => [ "base", "index", "mem", "val" ],
+       outs     => [ "M", "X_regular", "X_except" ],
        emit     => '. movdqu %binop',
        units    => [ "SSE" ],
-       latency   => 1,
-       mode     => "mode_M",
+       latency  => 1,
 },
 
 ); # end of %nodes