diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-03-29 05:44:56 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-03-29 05:44:56 +0000 |
commit | 0be99d4ba6c89dca6bbee981c7b89d506f344a40 (patch) | |
tree | 4b130dba7e507d24f9a4b86e2c8c6ee14e83b1a4 /gas/testsuite | |
parent | c3a7b1206d72edcfeb965fdbd6cfd0c9d0100eba (diff) | |
download | gdb-0be99d4ba6c89dca6bbee981c7b89d506f344a40.zip gdb-0be99d4ba6c89dca6bbee981c7b89d506f344a40.tar.gz gdb-0be99d4ba6c89dca6bbee981c7b89d506f344a40.tar.bz2 |
gas: blackfin: gas: blackfin: reject invalid BYTEOP16P insns
The destination registers must be different with BYTEOP16P insns,
otherwise the hardware throws up an exception. So reject them.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/bfin/expected_errors.l | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/bfin/expected_errors.s | 3 |
3 files changed, 10 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index b4bdca1..2472627 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-03-29 Mike Frysinger <vapier@gentoo.org> + + * gas/bfin/expected_errors.s: Add invalid BYTEOP16P insn tests. + * gas/bfin/expected_errors.l: Add new error messages. + 2011-03-28 Mike Frysinger <vapier@gentoo.org> * gas/bfin/expected_errors.s: Add invalid 16bit acc add insn tests. diff --git a/gas/testsuite/gas/bfin/expected_errors.l b/gas/testsuite/gas/bfin/expected_errors.l index 2f746db..216c8e1 100644 --- a/gas/testsuite/gas/bfin/expected_errors.l +++ b/gas/testsuite/gas/bfin/expected_errors.l @@ -101,3 +101,5 @@ .*:127: Error: Differing source registers. .*:129: Error: Register mismatch. .*:131: Error: Illegal dest register combination. Input text was A0.H. +.*:133: Error: Illegal dest register combination. +.*:134: Error: Illegal dest register combination. diff --git a/gas/testsuite/gas/bfin/expected_errors.s b/gas/testsuite/gas/bfin/expected_errors.s index f6e3f6f..677103c 100644 --- a/gas/testsuite/gas/bfin/expected_errors.s +++ b/gas/testsuite/gas/bfin/expected_errors.s @@ -129,3 +129,6 @@ R0 = R3 + R4, R1 = R5 - R6; R7 = A1.L + A1.H, R7 = A0.L + A0.H; + + (R0, R0) = BYTEOP16P (R1:0, R3:2); + (R7, R7) = BYTEOP16P (R1:0, R3:2); |