diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2012-01-16 23:19:20 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2012-01-16 23:19:20 +0000 |
commit | e143d25c7376b5c422ac3fac8d8d260c54487450 (patch) | |
tree | 07fad506489aeafc89245502f281b1d53311c7ce /gas | |
parent | 6aa2bb2b1bd63cd2849468a7226337a18f50f202 (diff) | |
download | gdb-e143d25c7376b5c422ac3fac8d8d260c54487450.zip gdb-e143d25c7376b5c422ac3fac8d8d260c54487450.tar.gz gdb-e143d25c7376b5c422ac3fac8d8d260c54487450.tar.bz2 |
* gas/testsuite/gas/m68k/pmove.s, gas/testsuite/gas/m68k/pmove.d: New test.
* gas/testsuite/gas/m68k/all.exp: Run it.
* opcodes/m68k-opc.c (m68k_opcodes): Fix entries for pmove with BADx/BACx
register and move them after pmove with PSR/PCSR register.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/m68k/all.exp | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/m68k/pmove.d | 16 | ||||
-rw-r--r-- | gas/testsuite/gas/m68k/pmove.s | 6 |
4 files changed, 29 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index e96c7bd..b217aa5 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-01-17 Andreas Schwab <schwab@linux-m68k.org> + + * gas/m68k/pmove.s, gas/m68k/pmove.d: New test. + * gas/m68k/all.exp: Run it. + 2012-01-13 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/i386.exp: Run vmfunc and x86-64-vmfunc. diff --git a/gas/testsuite/gas/m68k/all.exp b/gas/testsuite/gas/m68k/all.exp index 6035286..2bcce35 100644 --- a/gas/testsuite/gas/m68k/all.exp +++ b/gas/testsuite/gas/m68k/all.exp @@ -99,6 +99,8 @@ if { [istarget m68*-*-*] || [istarget fido*-*-*] } then { } run_dump_test pr11676 + + run_dump_test pmove } if [info exists errorInfo] then { unset errorInfo diff --git a/gas/testsuite/gas/m68k/pmove.d b/gas/testsuite/gas/m68k/pmove.d new file mode 100644 index 0000000..33e68f7 --- /dev/null +++ b/gas/testsuite/gas/m68k/pmove.d @@ -0,0 +1,16 @@ +#as: -m68030 +#objdump: --architecture=m68k:68030 -d +#name: pmove + +# Test handling of the 68030/68851 pmove instructions. + +.*: +file format .* + +Disassembly of section .text: + +0+ <.*>: +[ 0-9a-f]+: f010 6200 pmove %psr,%a0@ +[ 0-9a-f]+: f011 6000 pmove %a1@,%psr +[ 0-9a-f]+: f012 6600 pmove %pcsr,%a2@ +[ 0-9a-f]+: f013 7200 pmove %bad0,%a3@ +[ 0-9a-f]+: f014 7004 pmove %a4@,%bad1 diff --git a/gas/testsuite/gas/m68k/pmove.s b/gas/testsuite/gas/m68k/pmove.s new file mode 100644 index 0000000..7f1ec00 --- /dev/null +++ b/gas/testsuite/gas/m68k/pmove.s @@ -0,0 +1,6 @@ +# Test handling of the 68030/68851 pmove instructions. + pmove %psr,%a0@ + pmove %a1@,%psr + pmove %pcsr,%a2@ + pmove %bad0,%a3@ + pmove %a4@,%bad1 |