diff options
author | Jie Zhang <jie.zhang@analog.com> | 2009-09-01 07:21:42 +0000 |
---|---|---|
committer | Jie Zhang <jie.zhang@analog.com> | 2009-09-01 07:21:42 +0000 |
commit | 83ee431c60681eb06d414ecf2e2a153afc82184e (patch) | |
tree | 2838009733dd7dfc61e6fcfe5a9f8241dc10cb8c /gas/testsuite | |
parent | 08c1b05642edb25b85aae1550a40992d97616e70 (diff) | |
download | gdb-83ee431c60681eb06d414ecf2e2a153afc82184e.zip gdb-83ee431c60681eb06d414ecf2e2a153afc82184e.tar.gz gdb-83ee431c60681eb06d414ecf2e2a153afc82184e.tar.bz2 |
* config/bfin-parse.y (asm_1): Only PREG and DREG are allowed
in comparison.
testsuite/
* gas/bfin/expected_comparison_errors.s: Add more cases.
* gas/bfin/expected_comparison_errors.l: Update accordingly.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/bfin/expected_comparison_errors.l | 17 | ||||
-rw-r--r-- | gas/testsuite/gas/bfin/expected_comparison_errors.s | 6 |
3 files changed, 22 insertions, 6 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 7089122..051d53c 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2009-09-01 Jie Zhang <jie.zhang@analog.com> + * gas/bfin/expected_comparison_errors.s: Add more cases. + * gas/bfin/expected_comparison_errors.l: Update accordingly. + +2009-09-01 Jie Zhang <jie.zhang@analog.com> + * gas/bfin/stack2.s: Add pop multiple instruction with a label on the same line. * gas/bfin/stack2.d: Adjust accordingly. diff --git a/gas/testsuite/gas/bfin/expected_comparison_errors.l b/gas/testsuite/gas/bfin/expected_comparison_errors.l index 12569f3..0582ecd 100644 --- a/gas/testsuite/gas/bfin/expected_comparison_errors.l +++ b/gas/testsuite/gas/bfin/expected_comparison_errors.l @@ -8,9 +8,14 @@ .*:7: Error: AREGs are in bad order or same. Input text was a0. .*:8: Error: AREGs are in bad order or same. Input text was a1. .*:9: Error: AREGs are in bad order or same. Input text was a0. -.*:10: Error: Compare only of same register class. Input text was P0. -.*:11: Error: Compare only of same register class. -.*:12: Error: Compare only of same register class. -.*:13: Error: Compare only of same register class. Input text was R0. -.*:14: Error: Compare only of same register class. -.*:15: Error: Compare only of same register class. +.*:10: Error: Bad register in comparison. Input text was P0. +.*:11: Error: Bad register in comparison. +.*:12: Error: Bad register in comparison. +.*:14: Error: Bad register in comparison. +.*:15: Error: Bad register in comparison. +.*:16: Error: Bad register in comparison. +.*:17: Error: Bad register in comparison. Input text was I0. +.*:18: Error: Bad register in comparison. +.*:19: Error: Bad register in comparison. +.*:20: Error: Bad register in comparison. +.*:21: Error: Bad register in comparison. diff --git a/gas/testsuite/gas/bfin/expected_comparison_errors.s b/gas/testsuite/gas/bfin/expected_comparison_errors.s index d08967b..99a9359 100644 --- a/gas/testsuite/gas/bfin/expected_comparison_errors.s +++ b/gas/testsuite/gas/bfin/expected_comparison_errors.s @@ -13,3 +13,9 @@ CC = P0 == R0; CC = P0 < R0; CC = P0 <= R0; + CC = I0 == 0; + CC = I0 == I0; + CC = I0 < 0; + CC = I0 < I0; + CC = I0 <= 0; + CC = I0 <= I0; |