* [PATCH] gas: blackfin: add missing register move insns
@ 2010-09-21 7:46 Mike Frysinger
2010-09-22 21:37 ` Mike Frysinger
0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2010-09-21 7:46 UTC (permalink / raw)
To: binutils; +Cc: Robin Getz
From: Robin Getz <robin.getz@analog.com>
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>
2010-09-21 Robin Getz <robin.getz@analog.com>
* config/bfin-defs.h (IS_EMUDAT): New define.
* config/bfin-parse.y: Accept EMUDAT for any register move.
---
gas/config/bfin-defs.h | 1 +
gas/config/bfin-parse.y | 6 ++++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/gas/config/bfin-defs.h b/gas/config/bfin-defs.h
index 4013fea..8744f63 100644
--- a/gas/config/bfin-defs.h
+++ b/gas/config/bfin-defs.h
@@ -203,6 +203,7 @@ enum reg_class
#define IS_BREG(r) (((r).regno & 0xf4) == T_REG_B)
#define IS_LREG(r) (((r).regno & 0xf4) == T_REG_L)
#define IS_CREG(r) ((r).regno == REG_LC0 || (r).regno == REG_LC1)
+#define IS_EMUDAT(r) ((r).regno == REG_EMUDAT)
#define IS_ALLREG(r) ((r).regno < T_NOGROUP)
#define IS_GENREG(r) \
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);
--
1.7.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] gas: blackfin: add missing register move insns
2010-09-21 7:46 [PATCH] gas: blackfin: add missing register move insns Mike Frysinger
@ 2010-09-22 21:37 ` Mike Frysinger
0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2010-09-22 21:37 UTC (permalink / raw)
To: binutils; +Cc: Robin Getz
[-- Attachment #1: Type: Text/Plain, Size: 258 bytes --]
On Tuesday, September 21, 2010 03:46:03 Mike Frysinger wrote:
> From: Robin Getz <robin.getz@analog.com>
>
> The Blackfin ISA supports moving just about anything to/from EMUDAT, so
> make sure the assembler accepts these insns too.
committed
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-22 21:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-21 7:46 [PATCH] gas: blackfin: add missing register move insns Mike Frysinger
2010-09-22 21:37 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).