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>
This commit is contained in:
parent
69b8ea4abd
commit
5f95629354
2 changed files with 7 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue