removed ppc32_gen_decls
[libfirm] / ir / be / ppc32 / ppc32_spec.pl
index ffcd064..96397f7 100644 (file)
@@ -5,6 +5,7 @@
 # the cpu architecture (ia32, ia64, mips, sparc, ppc32, ...)
 
 $arch = "ppc32";
+$new_emit_syntax = 1;
 
 # this strings mark the beginning and the end of a comment in emit
 $comment_string     = "/*";
@@ -185,6 +186,18 @@ $comment_string_end = "*/";
                        ]
 ); # %reg_classes
 
+%emit_templates = (
+    S1 => "${arch}_emit_source_register(env, node, 0);",
+    S2 => "${arch}_emit_source_register(env, node, 1);",
+    S3 => "${arch}_emit_source_register(env, node, 2);",
+    D1 => "${arch}_emit_dest_register(env, node, 0);",
+    D2 => "${arch}_emit_dest_register(env, node, 1);",
+    D3 => "${arch}_emit_dest_register(env, node, 2);",
+       O  => "${arch}_emit_offset(env, node);",
+       C  => "${arch}_emit_immediate(env, node);",
+       RLWIMI => "${arch}_emit_rlwimi_helper(env, node);",
+);
+
 #--------------------------------------------------#
 #                        _                         #
 #                       (_)                        #
@@ -216,7 +229,7 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "construct Add: Add(a, b) = Add(b, a) = a + b",
   "reg_req"   => { "in" => [ "gp", "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. add     %D1, %S1, %S2 /* Add(%S1, %S2) -> %D1, (%A1, %A2) */',
+  "emit"      => '. add     %D1, %S1, %S2',
 },
 
 "Addi" => {
@@ -225,7 +238,7 @@ $comment_string_end = "*/";
   "comment"   => "construct Add: Addi(a, const) = Addi(const, a) = a + const",
   "reg_req"   => { "in" => [ "!r0" ], "out" => [ "gp" ] },
 #  "reg_req"   => { "in" => [ "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. addi    %D1, %S1, %C /* Addi(%S1, %C) -> %D1, (%A1, const) */',
+  "emit"      => '. addi    %D1, %S1, %C',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -238,7 +251,7 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "construct Mul: Mullw(a, b) = Mullw(b, a) = lo32(a * b)",
   "reg_req"   => { "in" => [ "gp", "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. mullw   %D1, %S1, %S2 /* Mullw(%S1, %S2) -> %D1, (%A1, %A2) */',
+  "emit"      => '. mullw   %D1, %S1, %S2',
 },
 
 "Mulhw" => {
@@ -246,7 +259,7 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "construct Mul: Mulhw(a, b) = Mulhw(b, a) = hi32(a * b)",
   "reg_req"   => { "in" => [ "gp", "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. mulhw   %D1, %S1, %S2 /* Mulhw(%S1, %S2) -> %D1, (%A1, %A2) */',
+  "emit"      => '. mulhw   %D1, %S1, %S2',
 },
 
 "Mulhwu" => {
@@ -254,14 +267,14 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "construct Mul: Mulhwu(a, b) = Mulhwu(b, a) = hi32(a * b)",
   "reg_req"   => { "in" => [ "gp", "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. mulhwu  %D1, %S1, %S2 /* Mulhwu(%S1, %S2) -> %D1, (%A1, %A2) */',
+  "emit"      => '. mulhwu  %D1, %S1, %S2',
 },
 
 #"Mul_i" => {
 #  "irn_flags" => "R",
 #  "comment"   => "construct Mul: Mul(a, const) = Mul(const, a) = a * const",
 #  "reg_req"   => { "in" => [ "gp" ], "out" => [ "gp" ] },
-#  "emit"      => '. mul %S1, %C, %D1 /* signed Mul(%C, %S1) -> %D1, (%A1, const) */',
+#  "emit"      => '. mul %S1, %C, %D1',
 #},
 
 "And" => {
@@ -269,14 +282,14 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "construct And: And(a, b) = And(b, a) = a AND b",
   "reg_req"   => { "in" => [ "gp", "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. and     %D1, %S1, %S2 /* And(%S1, %S2) -> %D1, (%A1, %A2) */',
+  "emit"      => '. and     %D1, %S1, %S2',
 },
 
 #"And_i" => {
 #  "irn_flags" => "R",
 #  "comment"   => "construct And: And(a, const) = And(const, a) = a AND const",
 #  "reg_req"   => { "in" => [ "gp" ], "out" => [ "gp" ] },
-#  "emit"      => '. and %S1, %C, %D1 /* And(%C, %S1) -> %D1, (%A1, const) */',
+#  "emit"      => '. and %S1, %C, %D1',
 #},
 
 "Or" => {
@@ -284,7 +297,7 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "construct Or: Or(a, b) = Or(b, a) = a OR b",
   "reg_req"   => { "in" => [ "gp", "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. or      %D1, %S1, %S2 /* Or(%S1, %S2) -> %D1, (%A1, %A2) */',
+  "emit"      => '. or      %D1, %S1, %S2',
 },
 
 #"Or_i" => {
@@ -292,7 +305,7 @@ $comment_string_end = "*/";
 #  "irn_flags" => "R",
 #  "comment"   => "construct Or: Or(a, const) = Or(const, a) = a OR const",
 #  "reg_req"   => { "in" => [ "gp" ], "out" => [ "gp" ] },
-#  "emit"      => '. or %S1, %C, %D1 /* Or(%C, %S1) -> %D1, (%A1, const) */',
+#  "emit"      => '. or %S1, %C, %D1',
 #},
 
 "Xor" => {
@@ -300,14 +313,14 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "construct Xor: Xor(a, b) = Xor(b, a) = a XOR b",
   "reg_req"   => { "in" => [ "gp", "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. xor     %D1, %S1, %S2 /* Xor(%S1, %S2) -> %D1, (%A1, %A2) */',
+  "emit"      => '. xor     %D1, %S1, %S2',
 },
 
 #"Xor_i" => {
 #  "irn_flags" => "R",
 #  "comment"   => "construct Xor: Xor(a, const) = Xor(const, a) = a EOR const",
 #  "reg_req"   => { "in" => [ "gp" ], "out" => [ "gp" ] },
-#  "emit"      => '. xor %S1, %C, %D1 /* Xor(%C, %S1) -> %D1, (%A1, const) */',
+#  "emit"      => '. xor %S1, %C, %D1',
 #},
 
 # not commutative operations
@@ -316,56 +329,56 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "construct Sub: Sub(a, b) = a - b",
   "reg_req"   => { "in" => [ "gp", "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. sub     %D1, %S1, %S2 /* Sub(%S1, %S2) -> %D1, (%A1, %A2) */',
+  "emit"      => '. sub %D1, %S1, %S2',
 },
 
 #"Sub_i" => {
 #  "irn_flags" => "R",
 #  "comment"   => "construct Sub: Sub(a, const) = a - const",
 #  "reg_req"   => { "in" => [ "gp" ], "out" => [ "gp" ] },
-#  "emit"      => '. subl %S1, %C, %D1 /* Sub(%S1, %C) -> %D1, (%A1, const) */',
+#  "emit"      => '. subl %S1, %C, %D1',
 #},
 
 "Slw" => {
   "irn_flags" => "R",
   "comment"   => "construct Shl: Shl(a, b) = a << b",
   "reg_req"   => { "in" => [ "gp", "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. slw     %D1, %S1, %S2 /* Shl(%S1, %S2) -> %D1, (%A1, %A2) */',
+  "emit"      => '. slw %D1, %S1, %S2',
 },
 
 #"Shl_i" => {
 #  "irn_flags" => "R",
 #  "comment"   => "construct Shl: Shl(a, const) = a << const",
 #  "reg_req"   => { "in" => [ "gp" ], "out" => [ "gp" ] },
-#  "emit"      => '. shl %S1, %C, %D1 /* Shl(%S1, %C) -> %D1, (%A1, const) */',
+#  "emit"      => '. shl %S1, %C, %D1',
 #},
 
 "Srw" => {
   "irn_flags" => "R",
   "comment"   => "construct Shr: Srw(a, b): c = a >> b",
   "reg_req"   => { "in" => [ "gp", "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. srw     %D1, %S1, %S2 /* Srw(%S1, %S2) -> %D1, (%A1, %A2) */',
+  "emit"      => '. srw     %D1, %S1, %S2',
 },
 
 #"Shr_i" => {
 #  "irn_flags" => "R",
 #  "comment"   => "construct Shr: Shr(a, const) = a >> const",
 #  "reg_req"   => { "in" => [ "gp" ], "out" => [ "gp" ] },
-#  "emit"      => '. shr %S1, %C, %D1 /* Shr(%S1, %C) -> %D1, (%A1, const) */',
+#  "emit"      => '. shr %S1, %C, %D1',
 #},
 
 "Sraw" => {
   "irn_flags" => "R",
   "comment"   => "construct Shrs: Sraw(a, b): c = a >> b",
   "reg_req"   => { "in" => [ "gp", "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. sraw    %D1, %S1, %S2 /* Sraw(%S1, %S2) -> %D1, (%A1, %A2) */',
+  "emit"      => '. sraw %D1, %S1, %S2',
 },
 
 "Srawi" => {
   "irn_flags" => "R",
   "comment"   => "construct Shrs: Srawi(a, const): c = a >> const",
   "reg_req"   => { "in" => [ "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. sraw    %D1, %S1, %C /* Sraw(%S1, %C) -> %D1, (%A1, const) */',
+  "emit"      => '. sraw %D1, %S1, %C',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -377,14 +390,14 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "construct ???: Rlwnm(a, b): c = a ROTL b",
   "reg_req"   => { "in" => [ "gp", "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. rlwnm   %D1, %S1, %S2 /* Rlwnm(%S1, %S2) -> %D1, (%A1, %A2) */',
+  "emit"      => '. rlwnm %D1, %S1, %S2',
 },
 
 "Rlwinm" => {
   "irn_flags" => "R",
   "comment"   => "construct ???: Rlwinm(a, b_const, c_const, d_const): (m = MASK(c, d)) e = (a ROTL b) & m",
   "reg_req"   => { "in" => [ "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. rlwinm  %D1, %S1, %ppc32_rlwimi_emit_helper /* Rlwinm(%S1, %ppc32_rlwimi_emit_helper) -> %D1, (%A1) */',
+  "emit"      => '. rlwinm %D1, %S1, %RLWIMI',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -396,49 +409,49 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "construct Minus: Neg(a) = -a",
   "reg_req"   => { "in" => [ "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. neg     %D1, %S1 /* Neg(%S1) -> %D1, (%A1) */',
+  "emit"      => '. neg %D1, %S1',
 },
 
 "Not" => {
   "irn_flags" => "R",
   "comment"   => "construct Not: Not(a) = !a",
   "reg_req"   => { "in" => [ "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. nor     %D1, %S1, %S1 /* Not(%S1) -> %D1, (%A1) */',
+  "emit"      => '. nor %D1, %S1, %S1',
 },
 
 "Extsb" => {
   "irn_flags" => "R",
   "comment"   => "construct Sign extension of byte: Extsb(char a) = (int) a",
   "reg_req"   => { "in" => [ "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. extsb   %D1, %S1 /* Extsb(%S1) -> %D1, (%A1) */',
+  "emit"      => '. extsb %D1, %S1',
 },
 
 "Extsh" => {
   "irn_flags" => "R",
   "comment"   => "construct Sign extension of halfword: Extsh(char a) = (short) a",
   "reg_req"   => { "in" => [ "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. extsh   %D1, %S1 /* Extsh(%S1) -> %D1, (%A1) */',
+  "emit"      => '. extsh %D1, %S1',
 },
 
 "Divw" => {
   "irn_flags" => "R",
   "comment"   => "construct Div (signed): Div(a, b) = a div b",
   "reg_req"   => { "in" => [ "gp", "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. divw    %D1, %S1, %S2 /* Div(%S1, %S2) -> %D1, (%A1, %A2) */',
+  "emit"      => '. divw %D1, %S1, %S2',
 },
 
 "Divwu" => {
   "irn_flags" => "R",
   "comment"   => "construct Div (unsigned): Div(a, b) = a div b",
   "reg_req"   => { "in" => [ "gp", "gp" ], "out" => [ "gp" ] },
-  "emit"      => '. divwu   %D1, %S1, %S2 /* Div(%S1, %S2) -> %D1, (%A1, %A2) */',
+  "emit"      => '. divwu %D1, %S1, %S2',
 },
 
 "Mtctr" => {
   "irn_flags" => "R",
   "comment"   => "construct Mtctr: Ctr = a",
   "reg_req"   => { "in" => [ "gp" ], "out" => [ "count" ] },
-  "emit"      => '. mtctr   %S1 /* Mtctr(%S1) -> %D1, (%A1) */',
+  "emit"      => '. mtctr %S1',
 },
 
 
@@ -518,7 +531,7 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "load constant (16bit with sign extension)",
   "reg_req"   => { "out" => [ "gp" ] },
-  "emit"      => '. addi    %D1, 0, %C /* lower 16 bit of %C (sign extended) -> %D1 */',
+  "emit"      => '. addi    %D1, 0, %C',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -556,7 +569,7 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "load the constant to higher 16 bit of register",
   "reg_req"   => { "out" => [ "gp" ] },
-  "emit"      => '. addis   %D1, 0, %C /* %C << 16 -> %D1 */',
+  "emit"      => '. addis %D1, 0, %C',
   "attr"      => "ppc32_attr_offset_mode om, tarval *tv, ident *id",
   "init_attr" =>
 '
@@ -581,7 +594,7 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "ors constant with register",
   "reg_req"   => { "in" => [ "gp"], "out" => [ "gp" ] },
-  "emit"      => '. ori     %D1, %S1, %C /* Ori(%S1,%C) -> %D1 */',
+  "emit"      => '. ori %D1, %S1, %C',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -593,7 +606,7 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "ands constant with register with cr0 update",
   "reg_req"   => { "in" => [ "gp"], "out" => [ "gp", "cr0" ] },
-  "emit"      => '. andi.   %D1, %S1,%C /* Andi(%S1,%C) -> %D1 (%D2 changed) */',
+  "emit"      => '. andi. %D1, %S1,%C',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -604,14 +617,14 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "construct Cmp: Cmp(a, b) = Flags in crX",
   "reg_req"   => { "in" => [ "gp", "gp" ], "out" => [ "condition" ] },
-  "emit"      => '. cmp     %D1, 0, %S1, %S2 /* Cmp(%S1, %S2) -> %D1, (%A1, %A2) */',
+  "emit"      => '. cmp %D1, 0, %S1, %S2',
 },
 
 "Cmpi" => {
   "irn_flags" => "R",
   "comment"   => "construct Cmp immediate: Cmpi(a, const) = Flags in crX",
   "reg_req"   => { "in" => [ "gp" ], "out" => [ "condition" ] },
-  "emit"      => '. cmpi    %D1, 0, %S1, %C /* Cmpi(%S1, %C) -> %D1, (%A1) */',
+  "emit"      => '. cmpi %D1, 0, %S1, %C',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -623,14 +636,14 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "construct Cmp logical: Cmpl(a, b) = Flags in crX",
   "reg_req"   => { "in" => [ "gp", "gp" ], "out" => [ "condition" ] },
-  "emit"      => '. cmpl    %D1, 0, %S1, %S2 /* Cmpl(%S1, %S2) -> %D1, (%A1, %A2) */',
+  "emit"      => '. cmpl %D1, 0, %S1, %S2',
 },
 
 "Cmpli" => {
   "irn_flags" => "R",
   "comment"   => "construct Cmp logical immediate: Cmpli(a, const) = Flags in crX",
   "reg_req"   => { "in" => [ "gp" ], "out" => [ "condition" ] },
-  "emit"      => '. cmpli   %D1, 0, %S1, %C /* Cmpli(%S1, %C) -> %D1, (%A1) */',
+  "emit"      => '. cmpli %D1, 0, %S1, %C',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -646,7 +659,7 @@ $comment_string_end = "*/";
   "state"     => "exc_pinned",
   "comment"   => "construct Load (byte unsigned): Load(ptr, mem) = LD ptr -> reg",
   "reg_req"   => { "in" => [ "!r0", "none" ], "out" => [ "gp", "none" ] },
-  "emit"      => '. lbz     %D1, %O(%S1) /* Load(%O(%S1)) -> %D1, (%A1) */',
+  "emit"      => '. lbz %D1, %O(%S1)',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -660,7 +673,7 @@ $comment_string_end = "*/";
   "state"     => "exc_pinned",
   "comment"   => "construct Load (halfword unsigned): Load(ptr, mem) = LD ptr -> reg",
   "reg_req"   => { "in" => [ "!r0", "none" ], "out" => [ "gp", "none" ] },
-  "emit"      => '. lhz     %D1, %O(%S1) /* Load(%O(%S1)) -> %D1, (%A1) */',
+  "emit"      => '. lhz %D1, %O(%S1)',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -674,7 +687,7 @@ $comment_string_end = "*/";
   "state"     => "exc_pinned",
   "comment"   => "construct Load (halfword signed): Load(ptr, mem) = LD ptr -> reg",
   "reg_req"   => { "in" => [ "!r0", "none" ], "out" => [ "gp", "none" ] },
-  "emit"      => '. lha     %D1, %O(%S1) /* Load(%O(%S1)) -> %D1, (%A1) */',
+  "emit"      => '. lha %D1, %O(%S1)',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -688,7 +701,7 @@ $comment_string_end = "*/";
   "state"     => "exc_pinned",
   "comment"   => "construct Load (word): Load(ptr, mem) = LD ptr -> reg",
   "reg_req"   => { "in" => [ "!r0", "none" ], "out" => [ "gp", "none" ] },
-  "emit"      => '. lwz     %D1, %O(%S1) /* Load(%O(%S1)) -> %D1, (%A1) */',
+  "emit"      => '. lwz %D1, %O(%S1)',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -702,7 +715,7 @@ $comment_string_end = "*/";
   "state"     => "exc_pinned",
   "comment"   => "construct Load with update (word): Load(ptr, mem) = LD ptr -> reg",
   "reg_req"   => { "in" => [ "!r0", "none" ], "out" => [ "gp", "in_r1", "none"] },
-  "emit"      => '. lwzu    %D1, %O(%S1) /* Load(%O(%S1)) -> %D1, %S1 += %O, (%A1) */',
+  "emit"      => '. lwzu %D1, %O(%S1)',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -715,7 +728,7 @@ $comment_string_end = "*/";
   "state"     => "exc_pinned",
   "comment"   => "construct Store: Store (byte) (ptr, val, mem) = ST ptr,val",
   "reg_req"   => { "in" => [ "!r0", "gp", "none" ] },
-  "emit"      => '. stb     %S2, %O(%S1) /* Store(%S2) -> (%S1), (%A1, %A2) */',
+  "emit"      => '. stb %S2, %O(%S1)',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -728,7 +741,7 @@ $comment_string_end = "*/";
   "state"     => "exc_pinned",
   "comment"   => "construct Store: Store (halfword) (ptr, val, mem) = ST ptr,val",
   "reg_req"   => { "in" => [ "!r0", "gp", "none" ] },
-  "emit"      => '. sth     %S2, %O(%S1) /* Store(%S2) -> (%S1), (%A1, %A2) */',
+  "emit"      => '. sth %S2, %O(%S1)',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -741,7 +754,7 @@ $comment_string_end = "*/";
   "state"     => "exc_pinned",
   "comment"   => "construct Store: Store (word) (ptr, val, mem) = ST ptr,val",
   "reg_req"   => { "in" => [ "!r0", "gp", "none" ] },
-  "emit"      => '. stw     %S2, %O(%S1) /* Store(%S2) -> (%S1), (%A1, %A2) */',
+  "emit"      => '. stw %S2, %O(%S1)',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -765,7 +778,7 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "construct FP Add: Add(a, b) = Add(b, a) = a + b",
   "reg_req"   => { "in" => [ "fp", "fp" ], "out" => [ "fp" ] },
-  "emit"      => '. fadd    %D1, %S1, %S2 /* FP Add(%S1, %S2) -> %D1 */',
+  "emit"      => '. fadd %D1, %S1, %S2',
 },
 
 "fAdds" => {
@@ -773,27 +786,27 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "construct FP Add (single): Add(a, b) = Add(b, a) = a + b",
   "reg_req"   => { "in" => [ "fp", "fp" ], "out" => [ "fp" ] },
-  "emit"      => '. fadds   %D1, %S1, %S2 /* FP Add(%S1, %S2) -> %D1 */',
+  "emit"      => '. fadds %D1, %S1, %S2',
 },
 
 "fMul" => {
   "op_flags"  => "C",
   "comment"   => "construct FP Mul: Mul(a, b) = Mul(b, a) = a * b",
   "reg_req"   => { "in" => [ "fp", "fp" ], "out" => [ "fp" ] },
-  "emit"      => '. fmul    %D1, %S1, %S2 /* FP Mul(%S1, %S2) -> %D1 */',
+  "emit"      => '. fmul %D1, %S1, %S2',
 },
 
 "fMuls" => {
   "op_flags"  => "C",
   "comment"   => "construct FP Mul (single): Mul(a, b) = Mul(b, a) = a * b",
   "reg_req"   => { "in" => [ "fp", "fp" ], "out" => [ "fp" ] },
-  "emit"      => '. fmuls   %D1, %S1, %S2 /* FP Mul(%S1, %S2) -> %D1 */',
+  "emit"      => '. fmuls %D1, %S1, %S2',
 },
 
 "fNeg" => {
   "comment"   => "construct FP Negation: fNeg(a) = -a",
   "reg_req"   => { "in" => [ "fp" ], "out" => [ "fp" ] },
-  "emit"      => '. fneg    %D1, %S1 /* FP fNeg(%S1) -> %D1 */',
+  "emit"      => '. fneg %D1, %S1',
 },
 
 
@@ -802,7 +815,7 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "construct FP Max: Max(a, b) = Max(b, a) = a > b ? a : b",
   "reg_req"   => { "in" => [ "fp", "fp" ], "out" => [ "fp" ] },
-  "emit"      => '. fmax    %S1, %S2, %D1 /* FP Max(%S1, %S2) -> %D1 */',
+  "emit"      => '. fmax %S1, %S2, %D1',
 },
 
 "fMin" => {
@@ -810,7 +823,7 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "construct FP Min: Min(a, b) = Min(b, a) = a < b ? a : b",
   "reg_req"   => { "in" => [ "fp", "fp" ], "out" => [ "fp" ] },
-  "emit"      => '. fmin    %S1, %S2, %D1 /* FP Min(%S1, %S2) -> %D1 */',
+  "emit"      => '. fmin %S1, %S2, %D1',
 },
 
 # not commutative operations
@@ -819,61 +832,61 @@ $comment_string_end = "*/";
   "irn_flags" => "R",
   "comment"   => "construct FP Sub: Sub(a, b) = a - b",
   "reg_req"   => { "in" => [ "fp", "fp" ], "out" => [ "fp" ] },
-  "emit"      => '. fsub    %D1, %S1, %S2 /* FP Sub(%S1, %S2) -> %D1 */',
+  "emit"      => '. fsub %D1, %S1, %S2',
 },
 
 "fSubs" => {
   "irn_flags" => "R",
   "comment"   => "construct FP Sub (single): Sub(a, b) = a - b",
   "reg_req"   => { "in" => [ "fp", "fp" ], "out" => [ "fp" ] },
-  "emit"      => '. fsub    %D1, %S1, %S2 /* FP Sub(%S1, %S2) -> %D1 */',
+  "emit"      => '. fsubs %D1, %S1, %S2',
 },
 
 "fDiv" => {
   "comment"   => "construct FP Div: Div(a, b) = a / b",
   "reg_req"   => { "in" => [ "fp", "fp" ], "out" => [ "fp" ] },
-  "emit"      => '. fdiv    %D1, %S1, %S2 /* FP Div(%S1, %S2) -> %D1 */',
+  "emit"      => '. fdiv %D1, %S1, %S2',
 },
 
 "fDivs" => {
   "comment"   => "construct FP Div (single): Div(a, b) = a / b",
   "reg_req"   => { "in" => [ "fp", "fp" ], "out" => [ "fp" ] },
-  "emit"      => '. fdivs   %D1, %S1, %S2 /* FP Div(%S1, %S2) -> %D1 */',
+  "emit"      => '. fdivs %D1, %S1, %S2',
 },
 
 "fMinus" => {
   "irn_flags" => "R",
   "comment"   => "construct FP Minus: fMinus(a) = -a",
   "reg_req"   => { "in" => [ "fp" ], "out" => [ "fp" ] },
-  "emit"      => '. fneg    %D1, %S1 /* FP fMinus(%S1) -> %D1 */',
+  "emit"      => '. fneg %D1, %S1',
 },
 
 "fCtiw" => {
   "irn_flags" => "R",
   "comment"   => "construct FP Convert to integer word: fCtiw(a) = (int) a",
   "reg_req"   => { "in" => [ "fp" ], "out" => [ "fp" ] },
-  "emit"      => '. fctiw   %D1, %S1 /* FP fCtiw(%S1) -> %D1 */',
+  "emit"      => '. fctiw %D1, %S1',
 },
 
 "fRsp" => {
   "irn_flags" => "R",
   "comment"   => "construct FP Round to single: fRsp(a) = (float) a",
   "reg_req"   => { "in" => [ "fp" ], "out" => [ "fp" ] },
-  "emit"      => '. frsp    %D1, %S1 /* FP fRsp(%S1) -> %D1 */',
+  "emit"      => '. frsp %D1, %S1',
 },
 
 "fAbs" => {
   "irn_flags" => "R",
   "comment"   => "construct FP Abs: fAbs(a) = |a|",
   "reg_req"   => { "in" => [ "fp" ], "out" => [ "fp" ] },
-  "emit"      => '. fabs    %D1, %S1 /* FP fAbs(%S1) -> %D1 */',
+  "emit"      => '. fabs %D1, %S1',
 },
 
 "fCmpu" => {
   "irn_flags" => "R",
   "comment"   => "construct FP Cmp unordered: fCmpu(a, b) = a ? b",
   "reg_req"   => { "in" => [ "fp", "fp" ], "out" => [ "condition" ] },
-  "emit"      => '. fcmpu   %D1, %S1, %S2 /* FP fCmpu(%S1, %S2) -> %D1 */',
+  "emit"      => '. fcmpu %D1, %S1, %S2',
 },
 
 # other operations
@@ -883,7 +896,7 @@ $comment_string_end = "*/";
 #  "irn_flags" => "R",
 #  "comment"   => "represents a FP constant",
 #  "reg_req"   => { "out" => [ "fp" ] },
-#  "emit"      => '. fmov %C, %D1 /* Mov fConst into register */',
+#  "emit"      => '. fmov %C, %D1',
 #  "cmp_attr"  =>
 #'
 #      /* TODO: compare fConst attributes */
@@ -911,7 +924,7 @@ $comment_string_end = "*/";
   "state"     => "exc_pinned",
   "comment"   => "construct FP Load (double): Load(ptr, mem) = LD ptr",
   "reg_req"   => { "in" => [ "!r0", "none" ], "out" => [ "fp", "none" ] },
-  "emit"      => '. lfd     %D1, %O(%S1) /* Load(%O(%S1)) -> %D1 */',
+  "emit"      => '. lfd %D1, %O(%S1)',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -925,7 +938,7 @@ $comment_string_end = "*/";
   "state"     => "exc_pinned",
   "comment"   => "construct FP Load (single): Load(ptr, mem) = LD ptr",
   "reg_req"   => { "in" => [ "!r0", "none" ], "out" => [ "fp","none" ] },
-  "emit"      => '. lfs     %D1, %O(%S1) /* Load(%O(%S1)) -> %D1 */',
+  "emit"      => '. lfs %D1, %O(%S1)',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -938,7 +951,7 @@ $comment_string_end = "*/";
   "state"     => "exc_pinned",
   "comment"   => "construct Store (double): Store(ptr, val, mem)  = ST ptr,val",
   "reg_req"   => { "in" => [ "!r0", "fp", "none" ] },
-  "emit"      => '. stfd    %S2, %O(%S1) /* Store(%S2) -> (%S1), (%A1, %A2) */',
+  "emit"      => '. stfd %S2, %O(%S1)',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);
@@ -951,7 +964,7 @@ $comment_string_end = "*/";
   "state"     => "exc_pinned",
   "comment"   => "construct Store (single): Store(ptr, val, mem)  = ST ptr,val",
   "reg_req"   => { "in" => [ "!r0", "fp", "none" ] },
-  "emit"      => '. stfs    %S2, %O(%S1) /* Store(%S2) -> (%S1), (%A1, %A2) */',
+  "emit"      => '. stfs %S2, %O(%S1)',
   "cmp_attr"  =>
 '
        return (attr_a->data.constant_tarval != attr_b->data.constant_tarval);