gas: blackfin: reject FP/SP with TESTSET
authorMike Frysinger <vapier@gentoo.org>
Fri, 11 Feb 2011 19:04:33 +0000 (19:04 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 11 Feb 2011 19:04:33 +0000 (19:04 +0000)
The TESTSET insn does not work with the FP/SP Pregs, so reject them.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
gas/ChangeLog
gas/config/bfin-parse.y

index 4c8b85ccd317e07bbc42184a1e9253d1fb296182..7330ea6af1624d96fb754a52071059ddd33b75e8 100644 (file)
@@ -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.
index fa7ca345321e03df657ff4bea4476d16c1cb00e1..b1795e14e8ac5b986d29621d1f5e0bdb67b8b320 100644 (file)
@@ -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);
            }
This page took 0.029237 seconds and 4 git commands to generate.