aboutsummaryrefslogtreecommitdiff
path: root/gas/config/bfin-parse.y
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-02-11 19:04:33 +0000
committerMike Frysinger <vapier@gentoo.org>2011-02-11 19:04:33 +0000
commit5f95629354ea36a3ab581d34a80af33b19c833cf (patch)
treefb67362b015fb41fa98b68360d45edb090236b80 /gas/config/bfin-parse.y
parent69b8ea4abd8a894f62dade3c5bb50291c82f3e0d (diff)
downloadgdb-5f95629354ea36a3ab581d34a80af33b19c833cf.zip
gdb-5f95629354ea36a3ab581d34a80af33b19c833cf.tar.gz
gdb-5f95629354ea36a3ab581d34a80af33b19c833cf.tar.bz2
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>
Diffstat (limited to 'gas/config/bfin-parse.y')
-rw-r--r--gas/config/bfin-parse.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/bfin-parse.y b/gas/config/bfin-parse.y
index fa7ca34..b1795e1 100644
--- a/gas/config/bfin-parse.y
+++ b/gas/config/bfin-parse.y
@@ -2697,6 +2697,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);
}