diff options
author | Nick Clifton <nickc@redhat.com> | 2004-01-02 17:26:11 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2004-01-02 17:26:11 +0000 |
commit | 3ab489312135d66f65a23985dd2341340842db1d (patch) | |
tree | 5ceefbe9d821c025e4c0cd286acaa86bbfe4a184 /gas/testsuite | |
parent | f0660b7388f51601a5522c72327ea435cf8675d5 (diff) | |
download | gdb-3ab489312135d66f65a23985dd2341340842db1d.zip gdb-3ab489312135d66f65a23985dd2341340842db1d.tar.gz gdb-3ab489312135d66f65a23985dd2341340842db1d.tar.bz2 |
Catch a bug in the msp430 disassembler where an add instruction was confused
with an rla instruction. Add a test for this to the testsuite.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/msp430/opcode.d | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/msp430/opcode.s | 3 |
3 files changed, 8 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 829c5b8..1c9409d 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-01-02 Albert Bartoszko <albar@nt.kegel.com.pl> + + * gas/msp430/opcode.s: Add test for an 'add' instruction which + looks similar to an 'rla' instruction. For older changes see ChangeLog-9303 diff --git a/gas/testsuite/gas/msp430/opcode.d b/gas/testsuite/gas/msp430/opcode.d index 3f45127..22df51c 100644 --- a/gas/testsuite/gas/msp430/opcode.d +++ b/gas/testsuite/gas/msp430/opcode.d @@ -42,4 +42,4 @@ Disassembly of section .text: 0+05e <[^>]*> 82 4f 00 00 mov r15, &0x0000 ; 0+062 <[^>]*> 3f 40 f0 00 mov #240, r15 ;#0x00f0 0+066 <[^>]*> 30 40 00 00 br #0x0000 ; - +0+06a <[^>]*> 92 52 00 02 72 01 add &0x0200,&0x0172 ;0x0200 diff --git a/gas/testsuite/gas/msp430/opcode.s b/gas/testsuite/gas/msp430/opcode.s index 237bd1f..b85a463 100644 --- a/gas/testsuite/gas/msp430/opcode.s +++ b/gas/testsuite/gas/msp430/opcode.s @@ -52,3 +52,6 @@ main: .comm c,4,2 .comm d,4,2 + ;; This next instruction triggered a bug which + ;; was fixed by a patch to msp430-dis.c on Jan 2, 2004 + add &0x200, &0x172 |