The TESTSET insn does not work with the FP/SP Pregs, so reject them.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+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.
{
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);
}