aboutsummaryrefslogtreecommitdiff
path: root/gas/config/bfin-parse.y
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-09-22 21:30:35 +0000
committerMike Frysinger <vapier@gentoo.org>2010-09-22 21:30:35 +0000
commit9d2eed0673a525c8afecb5c9511ec47cd94bf769 (patch)
treeed538920ed50cd5a5c8cc1aadf39b1cc689dcd3f /gas/config/bfin-parse.y
parenta2c28b80f1bc424f2b8858118634ea8428ffe985 (diff)
downloadbinutils-9d2eed0673a525c8afecb5c9511ec47cd94bf769.zip
binutils-9d2eed0673a525c8afecb5c9511ec47cd94bf769.tar.gz
binutils-9d2eed0673a525c8afecb5c9511ec47cd94bf769.tar.bz2
gas: blackfin: add missing register move insns
The Blackfin ISA supports moving just about anything to/from EMUDAT, so make sure the assembler accepts these insns too. Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'gas/config/bfin-parse.y')
-rw-r--r--gas/config/bfin-parse.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/gas/config/bfin-parse.y b/gas/config/bfin-parse.y
index 4549b53..0dd729c 100644
--- a/gas/config/bfin-parse.y
+++ b/gas/config/bfin-parse.y
@@ -1728,10 +1728,12 @@ asm_1:
|| (IS_DAGREG ($1) && IS_DAGREG ($3))
|| (IS_GENREG ($1) && $3.regno == REG_USP)
|| ($1.regno == REG_USP && IS_GENREG ($3))
+ || ($1.regno == REG_USP && $3.regno == REG_USP)
|| (IS_DREG ($1) && IS_SYSREG ($3))
|| (IS_PREG ($1) && IS_SYSREG ($3))
- || (IS_SYSREG ($1) && IS_DREG ($3))
- || (IS_SYSREG ($1) && IS_PREG ($3))
+ || (IS_SYSREG ($1) && IS_GENREG ($3))
+ || (IS_ALLREG ($1) && IS_EMUDAT ($3))
+ || (IS_EMUDAT ($1) && IS_ALLREG ($3))
|| (IS_SYSREG ($1) && $3.regno == REG_USP))
{
$$ = bfin_gen_regmv (&$3, &$1);