aboutsummaryrefslogtreecommitdiff
path: root/gas/config/bfin-parse.y
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@codesourcery.com>2007-09-18 11:59:00 +0000
committerBernd Schmidt <bernds@codesourcery.com>2007-09-18 11:59:00 +0000
commitd908d8f43bdc4fd78e8824d1b71b1d44e8dde096 (patch)
treef3de5f8b379ae8685bff6c953050d77f5bfa6233 /gas/config/bfin-parse.y
parent14b1c01e0475f79b97692fbfd9de25c541aeb0b4 (diff)
downloadgdb-d908d8f43bdc4fd78e8824d1b71b1d44e8dde096.zip
gdb-d908d8f43bdc4fd78e8824d1b71b1d44e8dde096.tar.gz
gdb-d908d8f43bdc4fd78e8824d1b71b1d44e8dde096.tar.bz2
* config/bfin-parse.y (asm_1): Slightly improve error messages
for "reg += const;".
Diffstat (limited to 'gas/config/bfin-parse.y')
-rw-r--r--gas/config/bfin-parse.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/config/bfin-parse.y b/gas/config/bfin-parse.y
index cbb223a..df1b6f8 100644
--- a/gas/config/bfin-parse.y
+++ b/gas/config/bfin-parse.y
@@ -1432,6 +1432,8 @@ asm_1:
notethat ("COMPI2opD: dregs += imm7\n");
$$ = COMPI2OPD (&$1, imm7 ($3), 1);
}
+ else if ((IS_DREG ($1) || IS_PREG ($1)) && IS_CONST ($3))
+ return yyerror ("Immediate value out of range");
else
return yyerror ("Register mismatch");
}