add the X template to access x87 registers
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 27 Mar 2006 12:38:14 +0000 (12:38 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 27 Mar 2006 12:38:14 +0000 (12:38 +0000)
ir/be/scripts/generate_emitter.pl

index 63102df..e623456 100755 (executable)
@@ -78,7 +78,7 @@ foreach my $op (keys(%nodes)) {
                                }
 
                                # substitute all format parameter
-                               while ($template =~ /\%([ASD])(\d)|\%([COM])|\%(\w+)/) {
+                               while ($template =~ /\%([ASDX])(\d)|\%([COM])|\%(\w+)/) {
                                        $res  .= $`;      # get everything before the match
 
                                        if ($1 && $1 eq "S") {
@@ -89,6 +89,10 @@ foreach my $op (keys(%nodes)) {
                                                push(@params, "n");
                                                $res .= "%".$2."D"; # substitute %Dx with %xD
                                        }
+                                       elsif ($1 && $1 eq "X") {
+                                               push(@params, "n");
+                                               $res .= "%".$2."X"; # substitute %Xx with %xX
+                                       }
                                        elsif ($1 && $1 eq "A") {
                                                push(@params, "get_irn_n(n, ".($2 - 1).")");
                                                $res .= "%+F";