fixed out-flags parsing
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Thu, 22 Feb 2007 11:03:54 +0000 (11:03 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Thu, 22 Feb 2007 11:03:54 +0000 (11:03 +0000)
ir/be/scripts/generate_new_opcodes.pl

index f250a42..121b645 100755 (executable)
@@ -90,9 +90,9 @@ foreach my $op (keys(%nodes)) {
 
                for (my $idx = 0; $idx <= $#outs; $idx++) {
                        # check, if we have additional flags annotated to out
-                       if ($outs[$idx] =~ /:(S|I(\|(S|I))*)/) {
+                       if ($outs[$idx] =~ /:((S|I)(\|(S|I))*)/) {
                                push(@out_flags, $1);
-                               $outs[$idx] =~ s/:(S|I(\|(S|I))*)//;
+                               $outs[$idx] =~ s/:((S|I)(\|(S|I))*)//;
                        }
                        push(@obst_proj, "  pn_$op\_".$outs[$idx]." = $idx,\n");
                }