From 5f95629354ea36a3ab581d34a80af33b19c833cf Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 11 Feb 2011 19:04:33 +0000 Subject: [PATCH] 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 --- gas/ChangeLog | 4 ++++ gas/config/bfin-parse.y | 3 +++ 2 files changed, 7 insertions(+) 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); } -- 2.7.4