binutils/:
authorAndreas Schwab <schwab@linux-m68k.org>
Mon, 11 Oct 2010 22:18:42 +0000 (22:18 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Mon, 11 Oct 2010 22:18:42 +0000 (22:18 +0000)
* binutils-all/m68k/objdump.exp: Add fnop test.
* binutils-all/m68k/fnop.s: New file.

opcodes/:
* m68k-opc.c (m68k_opcodes): Move fnop before fbf.

binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/m68k/fnop.s [new file with mode: 0644]
binutils/testsuite/binutils-all/m68k/objdump.exp
opcodes/ChangeLog
opcodes/m68k-opc.c

index 66977a8d3a7ad8d18024ef21c8aba5751fb2d9fd..7cd27fce636045c0d0cfd400625b14cef968bc3f 100644 (file)
@@ -1,3 +1,8 @@
+2010-10-12  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * binutils-all/m68k/objdump.exp: Add fnop test.
+       * binutils-all/m68k/fnop.s: New file.
+
 2010-09-29  Alan Modra  <amodra@gmail.com>
 
        * lib/utils-lib.exp (is_elf_format): Merge with gas and ld versions.
diff --git a/binutils/testsuite/binutils-all/m68k/fnop.s b/binutils/testsuite/binutils-all/m68k/fnop.s
new file mode 100644 (file)
index 0000000..628e198
--- /dev/null
@@ -0,0 +1 @@
+       fnop
index ba0afe8c027883eb4b223acb8a26d3cc7ee05ea8..5043ef7e1de11e4c2b4404712df935349f7b4fac 100644 (file)
@@ -1,4 +1,4 @@
-#   Copyright 2004, 2007, 2009
+#   Copyright 2004, 2007, 2009, 2010
 #   Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
@@ -51,3 +51,29 @@ if [regexp $want $got] then {
 } else {
     fail "movem test"
 }
+
+###########################
+# Set up the test of fnop.s
+###########################
+
+if {![binutils_assemble $srcdir/$subdir/fnop.s tmpdir/fnop.o]} then {
+    return
+}
+
+if [is_remote host] {
+    set objfile [remote_download host tmpdir/fnop.o]
+} else {
+    set objfile tmpdir/fnop.o
+}
+
+# Make sure that fnop is decoded as fnop, not fbf.
+
+set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS --disassemble $objfile"]
+
+set want "fnop *\[\r\n\]"
+
+if [regexp $want $got] then {
+    pass "fnop test"
+} else {
+    fail "fnop test"
+}
index 8581095b61408430ee028781086ec9626fc46e2f..43a585d8a006d0c5a61aa91b8773e215da2e9cba 100644 (file)
@@ -1,3 +1,7 @@
+2010-10-12  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * m68k-opc.c (m68k_opcodes): Move fnop before fbf.
+
 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
 
        * s390-opc.c: Make the instruction masks for the load/store on
index 71e712e29c21444de074e8a55594708e8d233610..0f6852f1470944c9220fac315790bc303a955d4b 100644 (file)
@@ -1,6 +1,6 @@
 /* Opcode table for m680[012346]0/m6888[12]/m68851/mcf5200.
    Copyright 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-   2000, 2001, 2003, 2004, 2005, 2006, 2007, 2009
+   2000, 2001, 2003, 2004, 2005, 2006, 2007, 2009, 2010
    Free Software Foundation, Inc.
 
    This file is part of the GNU opcodes library.
@@ -529,6 +529,9 @@ const struct m68k_opcode m68k_opcodes[] =
 {"fatanhx", 4, two(0xF000, 0x480D), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
 {"fatanhx", 4, two(0xF000, 0x000D), two(0xF1C0, 0xE07F), "IiFt",   mfloat },
 
+/* This is the same as `fbf .+2'.  */
+{"fnop", 4,    two(0xF280, 0x0000), two(0xFFFF, 0xFFFF), "Ii", mfloat | cfloat },
+
 {"fbeq", 2,    one(0xF081),            one(0xF1FF), "IdBW", mfloat | cfloat },
 {"fbf", 2,     one(0xF080),            one(0xF1FF), "IdBW", mfloat | cfloat },
 {"fbge", 2,    one(0xF093),            one(0xF1FF), "IdBW", mfloat | cfloat },
@@ -1084,8 +1087,6 @@ const struct m68k_opcode m68k_opcodes[] =
 {"fdnegx", 4,  two(0xF000, 0x485E), two(0xF1C0, 0xFC7F), "Ii;xF7", m68040up },
 {"fdnegx", 4,  two(0xF000, 0x005E), two(0xF1C0, 0xE07F), "IiFt",   m68040up },
 
-{"fnop", 4,    two(0xF280, 0x0000), two(0xFFFF, 0xFFFF), "Ii", mfloat | cfloat },
-
 {"fremb", 4,   two(0xF000, 0x5825), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
 {"fremd", 4,   two(0xF000, 0x5425), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
 {"freml", 4,   two(0xF000, 0x4025), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
This page took 0.052812 seconds and 4 git commands to generate.