* config/bfin-parse.y (asm_1): Fix a typo.
authorJie Zhang <jie.zhang@analog.com>
Thu, 3 Sep 2009 15:48:16 +0000 (15:48 +0000)
committerJie Zhang <jie.zhang@analog.com>
Thu, 3 Sep 2009 15:48:16 +0000 (15:48 +0000)
testsuite/
* gas/bfin/expected_comparison_errors.l: Expect error on Line 13.

gas/ChangeLog
gas/config/bfin-parse.y
gas/testsuite/ChangeLog
gas/testsuite/gas/bfin/expected_comparison_errors.l

index 30d4c62..204d8bf 100644 (file)
@@ -1,5 +1,9 @@
 2009-09-03  Jie Zhang  <jie.zhang@analog.com>
 
+       * config/bfin-parse.y (asm_1): Fix a typo.
+
+2009-09-03  Jie Zhang  <jie.zhang@analog.com>
+
        * config/bfin-parse.y (asm_1): Add LOOP_BEGIN and LOOP_END.
        * config/tc-bfin.c (bfin_start_line_hook): Remove.
        (bfin_loop_beginend): New.
index 719edaf..81bfef8 100644 (file)
@@ -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);
index f75cb12..13c8333 100644 (file)
@@ -1,5 +1,9 @@
 2009-09-03  Jie Zhang  <jie.zhang@analog.com>
 
+       * gas/bfin/expected_comparison_errors.l: Expect error on Line 13.
+
+2009-09-03  Jie Zhang  <jie.zhang@analog.com>
+
        * gas/bfin/loop.s, gas/bfin/loop.d: New test.
        * gas/bfin/loop2.s, gas/bfin/loop2.d: New test.
        * gas/bfin/loop3.s, gas/bfin/loop3.d: New test.
index 0582ecd..1653d64 100644 (file)
@@ -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.