diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2007-04-20 14:09:00 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2007-04-20 14:09:00 +0000 |
commit | 7833670643b856c2e39db33abdfb26adc668b37a (patch) | |
tree | f35e0cffba35b7cc1e827c912c9ed31129b6285a /gas/testsuite | |
parent | c6e15d68d9134a5493abf7c1fc8ac2c30daa7dee (diff) | |
download | gdb-7833670643b856c2e39db33abdfb26adc668b37a.zip gdb-7833670643b856c2e39db33abdfb26adc668b37a.tar.gz gdb-7833670643b856c2e39db33abdfb26adc668b37a.tar.bz2 |
gas/
* config/m68k-parse.h (RAMBAR_ALT): New.
* config/tc-m68k.c (mcf5206_ctrl, mcf5307_ctrl): New.
(mcf_ctrl, mcf5208_ctrl, mcf5210a_ctrl, mcf5213_ctrl, mcf52235_ctrl,
mcf5225_ctrl, mcf5235_ctrl, mcf5271_ctrl, mcf5275_ctrl,
mcf5282_ctrl, mcf5329_ctrl, mcf5373_ctrl, mcfv4e_ctrl,
mcf5475_ctrl, mcf5485_ctrl): Add RAMBAR synonym for
RAMBAR1.
(mcf5272_ctrl): Add RAMBAR0, replace add RAMBAR with RAMBAR_ALT.
(m68k_cpus): Adjust 5206, 5206e & 5307 entries.
(m68k_ip) <Case J>: Detect when RAMBAR_ALT should be used. Add it
to control register mapping.
gas/testsuite/
* gas/m68k/ctrl-1.d, gas/m68k/ctrl-1.s: New.
* gas/m68k/ctrl-2.d, gas/m68k/ctrl-2.s: New.
* gas/m68k/all.exp: Add them.
opcodes/
* m68k-dis.c (print_insn_arg): Show c04 as rambar0 and c05 as
rambar1.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/m68k/all.exp | 3 | ||||
-rw-r--r-- | gas/testsuite/gas/m68k/ctrl-1.d | 12 | ||||
-rw-r--r-- | gas/testsuite/gas/m68k/ctrl-1.s | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/m68k/ctrl-2.d | 11 | ||||
-rw-r--r-- | gas/testsuite/gas/m68k/ctrl-2.s | 2 |
6 files changed, 36 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 19cc782..5d24705 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2007-04-20 Nathan Sidwell <nathan@codesourcery.com> + + * gas/m68k/ctrl-1.d, gas/m68k/ctrl-1.s: New. + * gas/m68k/ctrl-2.d, gas/m68k/ctrl-2.s: New. + * gas/m68k/all.exp: Add them. + 2007-04-20 Alan Modra <amodra@bigpond.net.au> * gas/ppc/range64.s: New. diff --git a/gas/testsuite/gas/m68k/all.exp b/gas/testsuite/gas/m68k/all.exp index 88a3088..62badbc 100644 --- a/gas/testsuite/gas/m68k/all.exp +++ b/gas/testsuite/gas/m68k/all.exp @@ -52,6 +52,9 @@ if { [istarget m68*-*-*] || [istarget fido*-*-*] } then { run_dump_test arch-cpu-1 run_dump_test cpu32 + run_dump_test ctrl-1 + run_dump_test ctrl-2 + set testname "68000 operands" gas_run "operands.s" "-m68000" "2>err.out" if ![string match "child process exited abnormally" $comp_output] then { diff --git a/gas/testsuite/gas/m68k/ctrl-1.d b/gas/testsuite/gas/m68k/ctrl-1.d new file mode 100644 index 0000000..d434728 --- /dev/null +++ b/gas/testsuite/gas/m68k/ctrl-1.d @@ -0,0 +1,12 @@ +#name: ctrl-1.d +#objdump: -d +#as: -mcpu=5307 + +.*: file format .* + +Disassembly of section .text: + +0+ <.text>: + 0: 4e7b 0c04 movec %d0,%rambar0 + 4: 4e7b 0c04 movec %d0,%rambar0 + diff --git a/gas/testsuite/gas/m68k/ctrl-1.s b/gas/testsuite/gas/m68k/ctrl-1.s new file mode 100644 index 0000000..cac82d9 --- /dev/null +++ b/gas/testsuite/gas/m68k/ctrl-1.s @@ -0,0 +1,2 @@ + movec %d0,%rambar + movec %d0,%rambar0 diff --git a/gas/testsuite/gas/m68k/ctrl-2.d b/gas/testsuite/gas/m68k/ctrl-2.d new file mode 100644 index 0000000..00b8aa3 --- /dev/null +++ b/gas/testsuite/gas/m68k/ctrl-2.d @@ -0,0 +1,11 @@ +#name: ctrl-2.d +#objdump: -d +#as: -mcpu=5208 + +.*: file format .* + +Disassembly of section .text: + +0+ <.text>: + 0: 4e7b 0c05 movec %d0,%rambar1 + 4: 4e7b 0c05 movec %d0,%rambar1 diff --git a/gas/testsuite/gas/m68k/ctrl-2.s b/gas/testsuite/gas/m68k/ctrl-2.s new file mode 100644 index 0000000..3a36db0 --- /dev/null +++ b/gas/testsuite/gas/m68k/ctrl-2.s @@ -0,0 +1,2 @@ + movec %d0,%rambar + movec %d0,%rambar1 |