gencode.c: Two arg MADD should not assign result to /bin/bash.

This commit is contained in:
Gavin Romig-Koch 1997-07-25 19:10:05 +00:00
parent 63f6871728
commit c12e2e4c48
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Fri Jul 25 15:00:45 1997 Gavin Koch <gavin@cygnus.com>
* gencode.c (build_instruction): Two arg MADD should
not assign result to $0.
start-sanitize-r5900
Thu Jul 10 11:58:48 1997 Andrew Cagney <cagney@critters.cygnus.com>

View File

@ -3320,8 +3320,9 @@ build_instruction (doisa, features, mips16, insn)
prodtype, (notsigned ? "WORD64LO" : "SIGNEXTEND"), (notsigned ? "" : ",32"),
prodtype, (notsigned ? "WORD64LO" : "SIGNEXTEND"), (notsigned ? "" : ",32")
);
printf("GPR[destreg] = LO%s = SIGNEXTEND(prod,32);\n", pipeline );
printf("LO%s = SIGNEXTEND(prod,32);\n", pipeline );
printf("HI%s = SIGNEXTEND( WORD64HI(prod), 32);\n", pipeline );
printf("if( destreg != 0 ) GPR[destreg] = LO%s;\n", pipeline );
break;
}