This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] gas: blackfin: reject FP/SP with TESTSET
- From: Mike Frysinger <vapier at gentoo dot org>
- To: binutils at sourceware dot org
- Cc: toolchain-devel at blackfin dot uclinux dot org
- Date: Thu, 10 Feb 2011 23:45:43 -0500
- Subject: [PATCH] gas: blackfin: reject FP/SP with TESTSET
The TESTSET insn does not work with the FP/SP Pregs, so reject them.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-06 Mike Frysinger <vapier@gentoo.org>
* config/bfin-parse.y (TESTSET): Reject REG_SP and REG_FP.
---
gas/config/bfin-parse.y | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gas/config/bfin-parse.y b/gas/config/bfin-parse.y
index 4892017..eda67c9 100644
--- a/gas/config/bfin-parse.y
+++ b/gas/config/bfin-parse.y
@@ -2692,6 +2692,9 @@ asm_1:
{
if (IS_PREG ($3))
{
+ if ($3.regno == REG_SP || $3.regno == REG_FP)
+ return yyerror ("Bad register for TESTSET");
+
notethat ("ProgCtrl: TESTSET (pregs )\n");
$$ = PROGCTRL (11, $3.regno & CODE_MASK);
}
--
1.7.4