binutils/:

* 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.
This commit is contained in:
Andreas Schwab
2010-10-11 22:18:42 +00:00
parent cfc353b10d
commit 1a2dab1fbb
5 changed files with 41 additions and 4 deletions

View File

@@ -0,0 +1 @@
fnop

View 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"
}