* config/bfin-parse.y (asm_1): Slightly improve error messages

for "reg += const;".
This commit is contained in:
Bernd Schmidt 2007-09-18 11:59:00 +00:00
parent 14b1c01e04
commit d908d8f43b
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2007-09-18 Bernd Schmidt <bernd.schmidt@analog.com>
* config/bfin-parse.y (asm_1): Slightly improve error messages
for "reg += const;".
2007-09-18 Alan Modra <amodra@bigpond.net.au>
PR gas/5026

View file

@ -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");
}