forked from Imagelibrary/binutils-gdb
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:
1
binutils/testsuite/binutils-all/m68k/fnop.s
Normal file
1
binutils/testsuite/binutils-all/m68k/fnop.s
Normal file
@@ -0,0 +1 @@
|
||||
fnop
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user