diff options
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/config/bfin-parse.y | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 4c8b85c..7330ea6 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2011-02-11 Mike Frysinger <vapier@gentoo.org> + + * config/bfin-parse.y (TESTSET): Reject REG_SP and REG_FP. + 2011-02-11 Alan Modra <amodra@gmail.com> * doc/c-ppc.texi (PowerPC-Opts <-nops>): Clarify. 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); } |