binutils/:
[deliverable/binutils-gdb.git] / binutils / testsuite / binutils-all / m68k / objdump.exp
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"
+}
This page took 0.023776 seconds and 4 git commands to generate.