diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-02-11 19:04:33 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-02-11 19:04:33 +0000 |
commit | 5f95629354ea36a3ab581d34a80af33b19c833cf (patch) | |
tree | fb67362b015fb41fa98b68360d45edb090236b80 /gas | |
parent | 69b8ea4abd8a894f62dade3c5bb50291c82f3e0d (diff) | |
download | binutils-5f95629354ea36a3ab581d34a80af33b19c833cf.zip binutils-5f95629354ea36a3ab581d34a80af33b19c833cf.tar.gz binutils-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')
-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); } |