From 9ab8ee217bf6e7d89ca90ede5375013f15b2168d Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 27 Dec 2006 07:22:43 +0000 Subject: [PATCH] * gas/m68k/all.exp: Add support for fido. * gas/m68k/fido.d, gas/m68k/fido.s: New. --- gas/testsuite/ChangeLog | 5 +++++ gas/testsuite/gas/m68k/all.exp | 17 ++++++++++---- gas/testsuite/gas/m68k/fido.d | 41 ++++++++++++++++++++++++++++++++++ gas/testsuite/gas/m68k/fido.s | 37 ++++++++++++++++++++++++++++++ 4 files changed, 96 insertions(+), 4 deletions(-) create mode 100644 gas/testsuite/gas/m68k/fido.d create mode 100644 gas/testsuite/gas/m68k/fido.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 65d07cfaeee..9c3800840f0 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-12-27 Kazu Hirata + + * gas/m68k/all.exp: Add support for fido. + * gas/m68k/fido.d, gas/m68k/fido.s: New. + 2006-12-19 Nathan Sidwell * gas/cfi/cfi-common-6.s: Do not use |. diff --git a/gas/testsuite/gas/m68k/all.exp b/gas/testsuite/gas/m68k/all.exp index 7d54f93987a..8b43ed4ecc6 100644 --- a/gas/testsuite/gas/m68k/all.exp +++ b/gas/testsuite/gas/m68k/all.exp @@ -13,7 +13,7 @@ if [istarget "m6811-*-*"] then { if [istarget "m6812-*-*"] then { return } -if [istarget m68*-*-*] then { +if { [istarget m68*-*-*] || [istarget fido*-*-*] } then { gas_test "t2.s" "" "" "cross-section branch" if [istarget m68*-motorola-sysv] then { run_dump_test t2 @@ -29,9 +29,18 @@ if [istarget m68*-*-*] then { setup_xfail "*-*" clear_xfail "*-*-*elf*" "*-*-sysv4*" "*-*-rtems" "*-*-*gnu*" "*-*-psos*" run_dump_test pcrel - run_dump_test operands - run_dump_test cas - run_dump_test bitfield + + # Since fido is basically CPU32, it does not support those + # instructions beyond CPU32. Disable those tests that test them. + if ![istarget fido-*-*] then { + run_dump_test operands + run_dump_test cas + run_dump_test bitfield + } else { + # Test fido-specific instructions. + run_dump_test fido + } + run_dump_test link run_dump_test fmoveml run_dump_test mcf-mov3q diff --git a/gas/testsuite/gas/m68k/fido.d b/gas/testsuite/gas/m68k/fido.d new file mode 100644 index 00000000000..fff5abbef38 --- /dev/null +++ b/gas/testsuite/gas/m68k/fido.d @@ -0,0 +1,41 @@ +#objdump: -d --prefix-addresses +#name: fido + +# Test parsing of the operands of the fido-specific instructions. + +.*: +file format .* + +Disassembly of section .text: +0+000 sleep +0+002 trapx #0 +0+004 trapx #1 +0+006 trapx #2 +0+008 trapx #3 +0+00a trapx #4 +0+00c trapx #5 +0+00e trapx #6 +0+010 trapx #7 +0+012 trapx #8 +0+014 trapx #9 +0+016 trapx #10 +0+018 trapx #11 +0+01a trapx #12 +0+01c trapx #13 +0+01e trapx #14 +0+020 trapx #15 +0+022 movec %cac,%d0 +0+026 movec %cac,%a0 +0+02a movec %mbb,%d1 +0+02e movec %mbb,%a1 +0+032 movec %d2,%cac +0+036 movec %a2,%cac +0+03a movec %d3,%mbb +0+03e movec %a3,%mbb +0+042 movec %cac,%d4 +0+046 movec %cac,%a4 +0+04a movec %mbb,%d5 +0+04e movec %mbb,%a5 +0+052 movec %d6,%cac +0+056 movec %fp,%cac +0+05a movec %d7,%mbb +0+05e movec %sp,%mbb diff --git a/gas/testsuite/gas/m68k/fido.s b/gas/testsuite/gas/m68k/fido.s new file mode 100644 index 00000000000..8aaac7c5473 --- /dev/null +++ b/gas/testsuite/gas/m68k/fido.s @@ -0,0 +1,37 @@ +# Test parsing of the operands of the fido-specific instructions. + .text + .globl foo +foo: + sleep + trapx #0 + trapx #1 + trapx #2 + trapx #3 + trapx #4 + trapx #5 + trapx #6 + trapx #7 + trapx #8 + trapx #9 + trapx #10 + trapx #11 + trapx #12 + trapx #13 + trapx #14 + trapx #15 + movec #0xffe,%d0 + movec #0xffe,%a0 + movec #0xfff,%d1 + movec #0xfff,%a1 + movec %d2,#0xffe + movec %a2,#0xffe + movec %d3,#0xfff + movec %a3,#0xfff + movec %cac,%d4 + movec %cac,%a4 + movec %mbb,%d5 + movec %mbb,%a5 + movec %d6,%cac + movec %a6,%cac + movec %d7,%mbb + movec %a7,%mbb -- 2.30.2