From 1d3ad4d0b0eafa4c7182f41077b6bfa1d8bc53c8 Mon Sep 17 00:00:00 2001 From: Jie Zhang Date: Thu, 3 Sep 2009 15:48:16 +0000 Subject: [PATCH] * config/bfin-parse.y (asm_1): Fix a typo. testsuite/ * gas/bfin/expected_comparison_errors.l: Expect error on Line 13. --- gas/ChangeLog | 4 ++++ gas/config/bfin-parse.y | 2 +- gas/testsuite/ChangeLog | 4 ++++ gas/testsuite/gas/bfin/expected_comparison_errors.l | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 30d4c6277fb..204d8bff2e8 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2009-09-03 Jie Zhang + + * config/bfin-parse.y (asm_1): Fix a typo. + 2009-09-03 Jie Zhang * config/bfin-parse.y (asm_1): Add LOOP_BEGIN and LOOP_END. diff --git a/gas/config/bfin-parse.y b/gas/config/bfin-parse.y index 719edafd5d4..81bfef8b528 100644 --- a/gas/config/bfin-parse.y +++ b/gas/config/bfin-parse.y @@ -1643,7 +1643,7 @@ asm_1: | CCREG ASSIGN REG _ASSIGN_ASSIGN REG { if ((IS_DREG ($3) && IS_DREG ($5)) - || (IS_PREG ($3) && IS_PREG ($3))) + || (IS_PREG ($3) && IS_PREG ($5))) { notethat ("CCflag: CC = dpregs == dpregs\n"); $$ = CCFLAG (&$3, $5.regno & CODE_MASK, 0, 0, IS_PREG ($3) ? 1 : 0); diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index f75cb127420..13c83336ede 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2009-09-03 Jie Zhang + + * gas/bfin/expected_comparison_errors.l: Expect error on Line 13. + 2009-09-03 Jie Zhang * gas/bfin/loop.s, gas/bfin/loop.d: New test. diff --git a/gas/testsuite/gas/bfin/expected_comparison_errors.l b/gas/testsuite/gas/bfin/expected_comparison_errors.l index 0582ecd2814..1653d640a5e 100644 --- a/gas/testsuite/gas/bfin/expected_comparison_errors.l +++ b/gas/testsuite/gas/bfin/expected_comparison_errors.l @@ -11,6 +11,7 @@ .*:10: Error: Bad register in comparison. Input text was P0. .*:11: Error: Bad register in comparison. .*:12: Error: Bad register in comparison. +.*:13: Error: Bad register in comparison. Input text was R0. .*:14: Error: Bad register in comparison. .*:15: Error: Bad register in comparison. .*:16: Error: Bad register in comparison. -- 2.30.2