aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-10-15 20:44:46 +0000
committerMike Frysinger <vapier@gentoo.org>2010-10-15 20:44:46 +0000
commite1791cb8b5fa2b3688101452b11420908224f9bc (patch)
tree0ed20111dcc0b796c0bd3bdfc39966ee0758e534 /gas/config
parent6ccfe592c6fa585688b4be29561e3eb762e77eec (diff)
downloadgdb-e1791cb8b5fa2b3688101452b11420908224f9bc.zip
gdb-e1791cb8b5fa2b3688101452b11420908224f9bc.tar.gz
gdb-e1791cb8b5fa2b3688101452b11420908224f9bc.tar.bz2
gas: blackfin: fix encoding of BYTEOP2M insn
The BYTEOP2M parser incorrectly calls BYTEOP2P to generate the opcode. Once we've fixed that, it's easy to see that the disassembler also likes to decode this insn incorrectly. So fix that and then add some tests. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/bfin-parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/bfin-parse.y b/gas/config/bfin-parse.y
index c34e84c..fa7ca34 100644
--- a/gas/config/bfin-parse.y
+++ b/gas/config/bfin-parse.y
@@ -1064,8 +1064,8 @@ asm_1:
return yyerror ("Bad dreg pair");
else
{
- notethat ("dsp32alu: dregs = BYTEOP2P (dregs_pair , dregs_pair ) (rnd_op)\n");
- $$ = DSP32ALU (22, $13.r0, 0, &$1, &$5, &$9, $13.s0, 0, $13.x0);
+ notethat ("dsp32alu: dregs = BYTEOP2M (dregs_pair , dregs_pair ) (rnd_op)\n");
+ $$ = DSP32ALU (22, $13.r0, 0, &$1, &$5, &$9, $13.s0, $13.x0, $13.aop + 2);
}
}