aboutsummaryrefslogtreecommitdiff
path: root/sim/mips/gencode.c
diff options
context:
space:
mode:
authorGavin Romig-Koch <gavin@redhat.com>1997-07-25 19:10:05 +0000
committerGavin Romig-Koch <gavin@redhat.com>1997-07-25 19:10:05 +0000
commitc12e2e4c48d7038b03aa1a1feedac39c41c27136 (patch)
tree9646ce25fc326d73d1127c9900d35f3ae1f7d3ac /sim/mips/gencode.c
parent63f6871728182d833ac7576d3b3c56b2a953cece (diff)
downloadbinutils-c12e2e4c48d7038b03aa1a1feedac39c41c27136.zip
binutils-c12e2e4c48d7038b03aa1a1feedac39c41c27136.tar.gz
binutils-c12e2e4c48d7038b03aa1a1feedac39c41c27136.tar.bz2
gencode.c: Two arg MADD should not assign result to /bin/bash.
Diffstat (limited to 'sim/mips/gencode.c')
-rw-r--r--sim/mips/gencode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/mips/gencode.c b/sim/mips/gencode.c
index 4f2044a..e264b0a 100644
--- a/sim/mips/gencode.c
+++ b/sim/mips/gencode.c
@@ -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;
}