aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2007-10-17 13:44:09 +0000
committerNathan Sidwell <nathan@codesourcery.com>2007-10-17 13:44:09 +0000
commit25b07cd9c40077c076d68f9e7d5a113828fbebbf (patch)
tree551247d84c7074ce0e0960d44604af8e1f7bf55b /gas
parent11411de309ed70574799872f9b3bec1b18bb66cf (diff)
downloadgdb-25b07cd9c40077c076d68f9e7d5a113828fbebbf.zip
gdb-25b07cd9c40077c076d68f9e7d5a113828fbebbf.tar.gz
gdb-25b07cd9c40077c076d68f9e7d5a113828fbebbf.tar.bz2
opcodes/
* m68k-opc.c (m68k_opcodes): Correct move sr and ccr masks for coldfire. gas/testsuite/ * gas/m68k/mcf-movsr.s: New. * gas/m68k/mcf-movsr.d: New. * gas/m68k/all.exp: Add mcf-movsr test.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/m68k/all.exp1
-rw-r--r--gas/testsuite/gas/m68k/mcf-movsr.d15
-rw-r--r--gas/testsuite/gas/m68k/mcf-movsr.s13
4 files changed, 35 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index b1b0668..c180bea 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2007-10-17 Nathan Sidwell <nathan@codesourcery.com>
+
+ * gas/m68k/mcf-movsr.s: New.
+ * gas/m68k/mcf-movsr.d: New.
+ * gas/m68k/all.exp: Add mcf-movsr test.
+
2007-10-16 Nick Clifton <nickc@redhat.com>
* gas/elf/elf.exp: Accept COMMON in readelf's output.
diff --git a/gas/testsuite/gas/m68k/all.exp b/gas/testsuite/gas/m68k/all.exp
index ae9f993..0dcf29e 100644
--- a/gas/testsuite/gas/m68k/all.exp
+++ b/gas/testsuite/gas/m68k/all.exp
@@ -49,6 +49,7 @@ if { [istarget m68*-*-*] || [istarget fido*-*-*] } then {
}
run_dump_test mcf-mov3q
+ run_dump_test mcf-movsr
run_dump_test mode5
run_dump_test mcf-mac
run_dump_test mcf-emac
diff --git a/gas/testsuite/gas/m68k/mcf-movsr.d b/gas/testsuite/gas/m68k/mcf-movsr.d
new file mode 100644
index 0000000..494413a
--- /dev/null
+++ b/gas/testsuite/gas/m68k/mcf-movsr.d
@@ -0,0 +1,15 @@
+#name: mcf-movsr
+#objdump: -d
+#as: -mcpu=5329
+
+.*: file format .*
+
+Disassembly of section .text:
+
+0+ <test_movsr>:
+ 0: 46c3 movew %d3,%sr
+ 2: 46fc ffff movew #-1,%sr
+ 6: 40c3 movew %sr,%d3
+ 8: 44c3 movew %d3,%ccr
+ a: 44fc ffff movew #-1,%ccr
+ e: 42c3 movew %ccr,%d3
diff --git a/gas/testsuite/gas/m68k/mcf-movsr.s b/gas/testsuite/gas/m68k/mcf-movsr.s
new file mode 100644
index 0000000..32c9ecb
--- /dev/null
+++ b/gas/testsuite/gas/m68k/mcf-movsr.s
@@ -0,0 +1,13 @@
+.text
+|*****************************************************************
+| Test all permutations of movew sr and movew ccr
+|*****************************************************************
+ .global test_movsr
+test_movsr:
+ move.w %d3,%sr | Mode 0
+ move.w #-1,%sr | Mode 7.4
+ move.w %sr,%d3 | Mode 0
+
+ move.w %d3,%ccr | Mode 0
+ move.w #-1,%ccr | Mode 7.4
+ move.w %ccr,%d3 | Mode 0