From: Mike Frysinger Date: Fri, 11 Feb 2011 19:04:33 +0000 (+0000) Subject: gas: blackfin: reject FP/SP with TESTSET X-Git-Tag: cgen-snapshot-20110301~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f95629354ea36a3ab581d34a80af33b19c833cf;p=external%2Fbinutils.git 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 --- 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 + + * config/bfin-parse.y (TESTSET): Reject REG_SP and REG_FP. + 2011-02-11 Alan Modra * 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); }