]> granicus.if.org Git - yasm/commitdiff
Fix bug with ONE generation (overwrote both [0] and [1] indexes with opcode
authorPeter Johnson <peter@tortall.net>
Sat, 1 Dec 2001 06:10:19 +0000 (06:10 -0000)
committerPeter Johnson <peter@tortall.net>
Sat, 1 Dec 2001 06:10:19 +0000 (06:10 -0000)
for ONE version).

svn path=/trunk/yasm/; revision=366

modules/parsers/nasm/gen_instr.pl
src/parsers/nasm/gen_instr.pl

index 26108c3134aeb23c5207d2cde2128906365c2758..8160c0eb95d68c322111659408f4c4c58eb85f11 100755 (executable)
@@ -739,6 +739,7 @@ sub output_yacc ($@)
                            $tokens =~ s/imm8x/imm/;
                            die "no space for ONE?" if $args[3] !~ m/0;/;
                            my $oneval = $ONE->[3]->[2];
+                           $oneval =~ s/(idata\.op\[\d\]=)|;//g;
                            $args[3] =~ s/0/$oneval/;
                            print GRAMMAR action_setshiftflag ($rule, $tokens, $func, \@args, $count++);
                        }
index 26108c3134aeb23c5207d2cde2128906365c2758..8160c0eb95d68c322111659408f4c4c58eb85f11 100755 (executable)
@@ -739,6 +739,7 @@ sub output_yacc ($@)
                            $tokens =~ s/imm8x/imm/;
                            die "no space for ONE?" if $args[3] !~ m/0;/;
                            my $oneval = $ONE->[3]->[2];
+                           $oneval =~ s/(idata\.op\[\d\]=)|;//g;
                            $args[3] =~ s/0/$oneval/;
                            print GRAMMAR action_setshiftflag ($rule, $tokens, $func, \@args, $count++);
                        }