From d908d8f43bdc4fd78e8824d1b71b1d44e8dde096 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Tue, 18 Sep 2007 11:59:00 +0000 Subject: [PATCH] * config/bfin-parse.y (asm_1): Slightly improve error messages for "reg += const;". --- gas/ChangeLog | 5 +++++ gas/config/bfin-parse.y | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index e3fd86e4c06..2dda0dbe629 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2007-09-18 Bernd Schmidt + + * config/bfin-parse.y (asm_1): Slightly improve error messages + for "reg += const;". + 2007-09-18 Alan Modra PR gas/5026 diff --git a/gas/config/bfin-parse.y b/gas/config/bfin-parse.y index cbb223a860a..df1b6f8f477 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"); } -- 2.30.2