diff options
author | Alexis Deruell <alexis.deruelle@gmail.com> | 2017-01-27 12:00:55 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-01-27 12:00:55 +0000 |
commit | 8ec5cf65a8213988a9f861e6a94d12311e9b04c3 (patch) | |
tree | e7916fdb1c23bb7e0e03f533812e0a7b41af99f2 /gas/testsuite | |
parent | 0348d4be1676171b00c3609bea1e01c18af4ea98 (diff) | |
download | gdb-8ec5cf65a8213988a9f861e6a94d12311e9b04c3.zip gdb-8ec5cf65a8213988a9f861e6a94d12311e9b04c3.tar.gz gdb-8ec5cf65a8213988a9f861e6a94d12311e9b04c3.tar.bz2 |
Fix disassembling of TIC6X parallel instructions where the previous fetch packet ended with a 32-bit insn.
PR 21056
opcodes * tic6x-dis.c (print_insn_tic6x): Correct displaying of parallel
instructions when the previous fetch packet ends with a 32-bit
instruction.
gas * testsuite/gas/tic6x/insns16-parallel.s: New test case.
* testsuite/gas/tic6x/insns16-parallel.d: New test driver.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/tic6x/insns16-parallel.d | 43 | ||||
-rw-r--r-- | gas/testsuite/gas/tic6x/insns16-parallel.s | 42 |
2 files changed, 85 insertions, 0 deletions
diff --git a/gas/testsuite/gas/tic6x/insns16-parallel.d b/gas/testsuite/gas/tic6x/insns16-parallel.d new file mode 100644 index 0000000..56a2829 --- /dev/null +++ b/gas/testsuite/gas/tic6x/insns16-parallel.d @@ -0,0 +1,43 @@ +#objdump: -dr --prefix-addresses --show-raw-insn +#name: +#as: -march=c64x+ -mlittle-endian + +.*: *file format elf32-tic6x-le + + +Disassembly of section .text: +[ \t]*\.\.\. +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008001[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+\|\|[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 8c6e[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 8c6e[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> e8002000[ \t]+<fetch packet header 0xe8002000> +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+\|\|[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008001[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> e0000000[ \t]+<fetch packet header 0xe0000000> +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+\|\|[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[0-9a-f]+[02468ace] <[^>]*> 00008000[ \t]+nop 5 +[ \t]*\.\.\. diff --git a/gas/testsuite/gas/tic6x/insns16-parallel.s b/gas/testsuite/gas/tic6x/insns16-parallel.s new file mode 100644 index 0000000..06897b1 --- /dev/null +++ b/gas/testsuite/gas/tic6x/insns16-parallel.s @@ -0,0 +1,42 @@ + .text + nop + .align 16 + nop + .align 16 +FP0: + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 + .word 0x00008001 +FP1: + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 + .short 0x8c6e + .short 0x8c6e + .word 0xe8002000 +FP2: + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 + .word 0x00008001 + .word 0xe0000000 +FP3: + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 + .word 0x00008000 |