gas: blackfin: add illegal insn tests

Make sure all illegal insns get assembled & decoded correctly.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger
2010-10-15 20:52:36 +00:00
parent e1791cb8b5
commit e7b77cfe1e
6 changed files with 11199 additions and 0 deletions

@ -1,3 +1,9 @@
2010-10-15 Robin Getz <robin.getz@analog.com>
* gas/bfin/16bit_illegals.s, gas/bfin/16bit_illegals.d,
gas/bfin/parallel_illegal.s, gas/bfin/parallel_illegal.d: New tests.
* gas/bfin/bfin.exp: Add 16bit_illegals and parallel_illegal.
2010-10-15 Mike Frysinger <vapier@gentoo.org>
* gas/bfin/video.s: Add BYTEOP2M insns.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1,6 +1,7 @@
# Blackfin assembler testsuite
if [istarget bfin*-*-*] {
run_dump_test "16bit_illegals"
run_dump_test "arithmetic"
run_dump_test "arith_mode"
run_dump_test "bit"
@ -31,6 +32,7 @@ if [istarget bfin*-*-*] {
run_dump_test "parallel2"
run_dump_test "parallel3"
run_dump_test "parallel4"
run_dump_test "parallel_illegal"
run_dump_test "pseudo"
run_dump_test "reloc"
run_list_test "resource_conflict" ""

@ -0,0 +1,30 @@
#objdump: -dr
#name: parallel_illegal
.*: +file format .*
Disassembly of section .text:
00000000 <.text>:
0: 03 c8 00 18 MNOP || NOP || NOP;
4: 00 00 00 00
8: 03 c8 MNOP || ILLEGAL || NOP;.*
a: 00 18 IF CC JUMP 0x0xa
c: 01 00 ILLEGAL;
e: 00 00 NOP;
10: 03 c8 MNOP || NOP || ILLEGAL;.*
12: 00 18 IF CC JUMP 0x0x12
14: 00 00 NOP;
16: 01 00 ILLEGAL;
18: 03 c8 MNOP || ILLEGAL || ILLEGAL;.*
1a: 00 18 IF CC JUMP 0x0x1a
1c: 01 00 ILLEGAL;
1e: 01 00 ILLEGAL;
20: 03 c8 MNOP || ILLEGAL || ILLEGAL;.*
22: 00 18 IF CC JUMP 0x0x22
24: 10 00 RTS;
26: 10 00 RTS;
28: 03 c8 MNOP || ILLEGAL || ILLEGAL;.*
2a: 00 18 IF CC JUMP 0x0x2a
2c: 03 c0 00 18 MNOP;
30: 00 00 NOP;
...

@ -0,0 +1,25 @@
.dw 0xc803, 0x1800
.dw 0x0000
.dw 0x0000
.dw 0xc803, 0x1800
.dw 0x0001
.dw 0x0000
.dw 0xc803, 0x1800
.dw 0x0000
.dw 0x0001
.dw 0xc803, 0x1800
.dw 0x0001
.dw 0x0001
.dw 0xc803, 0x1800
.dw 0x0010
.dw 0x0010
.dw 0xc803, 0x1800
.dw 0xc003, 0x1800
.dw 0x0000
.dw 0x0000