* config/bfin-parse.y (asm_1): Fix a typo.

testsuite/
	* gas/bfin/expected_comparison_errors.l: Expect error on Line 13.
This commit is contained in:
Jie Zhang
2009-09-03 15:48:16 +00:00
parent d3a50e1419
commit 1d3ad4d0b0
4 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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.

View 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);

View File

@ -1,3 +1,7 @@
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.

View 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.