From e8e008ea39d75618e79591c7de79c1391a3af472 Mon Sep 17 00:00:00 2001 From: ciceron Date: Wed, 23 Jul 2003 20:13:38 +0000 Subject: [PATCH] * gas/m68hc11/m68hc11.exp: Execute the new tests. * gas/m68hc11/abi.s: New test for abi elf flags. * gas/m68hc11/abi-m68hc11-32-64.d: Test for 32-bit int, 64-bit float. * gas/m68hc11/abi-m68hc11-16-64.d: Test for 16-bit int, 64-bit float. * gas/m68hc11/abi-m68hc11-32-32.d: Test for 32-bit int, 32-bit float. * gas/m68hc11/abi-m68hc11-16-32.d: Test for 16-bit int, 32-bit float. --- gas/testsuite/ChangeLog | 9 +++++++++ gas/testsuite/gas/m68hc11/abi-m68hc11-16-32.d | 7 +++++++ gas/testsuite/gas/m68hc11/abi-m68hc11-16-64.d | 7 +++++++ gas/testsuite/gas/m68hc11/abi-m68hc11-32-32.d | 7 +++++++ gas/testsuite/gas/m68hc11/abi-m68hc11-32-64.d | 7 +++++++ gas/testsuite/gas/m68hc11/abi.s | 4 ++++ gas/testsuite/gas/m68hc11/m68hc11.exp | 9 +++++++++ 7 files changed, 50 insertions(+) create mode 100644 gas/testsuite/gas/m68hc11/abi-m68hc11-16-32.d create mode 100644 gas/testsuite/gas/m68hc11/abi-m68hc11-16-64.d create mode 100644 gas/testsuite/gas/m68hc11/abi-m68hc11-32-32.d create mode 100644 gas/testsuite/gas/m68hc11/abi-m68hc11-32-64.d create mode 100644 gas/testsuite/gas/m68hc11/abi.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 17d0d3de8e..9eba7fa650 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2003-07-23 Stephane Carrez + + * gas/m68hc11/m68hc11.exp: Execute the new tests. + * gas/m68hc11/abi.s: New test for abi elf flags. + * gas/m68hc11/abi-m68hc11-32-64.d: Test for 32-bit int, 64-bit float. + * gas/m68hc11/abi-m68hc11-16-64.d: Test for 16-bit int, 64-bit float. + * gas/m68hc11/abi-m68hc11-32-32.d: Test for 32-bit int, 32-bit float. + * gas/m68hc11/abi-m68hc11-16-32.d: Test for 16-bit int, 32-bit float. + 2003-07-15 Richard Sandiford * gas/mips/rm7000.[sd]: New test. diff --git a/gas/testsuite/gas/m68hc11/abi-m68hc11-16-32.d b/gas/testsuite/gas/m68hc11/abi-m68hc11-16-32.d new file mode 100644 index 0000000000..32793620df --- /dev/null +++ b/gas/testsuite/gas/m68hc11/abi-m68hc11-16-32.d @@ -0,0 +1,7 @@ +#objdump: -p +#as: -m68hc11 -mshort-double +#name: Elf flags 68HC11 16-bit int, 32-bit double +#source: abi.s + +.*: +file format elf32\-m68hc11 +private flags = 0:\[abi=16-bit int, 32-bit double, cpu=HC11\] \[memory=flat\] diff --git a/gas/testsuite/gas/m68hc11/abi-m68hc11-16-64.d b/gas/testsuite/gas/m68hc11/abi-m68hc11-16-64.d new file mode 100644 index 0000000000..bc7e71682f --- /dev/null +++ b/gas/testsuite/gas/m68hc11/abi-m68hc11-16-64.d @@ -0,0 +1,7 @@ +#objdump: -p +#as: -m68hc11 +#name: Elf flags 68HC11 16-bit int, 64-bit double +#source: abi.s + +.*: +file format elf32\-m68hc11 +private flags = 2:\[abi=16-bit int, 64-bit double, cpu=HC11\] \[memory=flat\] diff --git a/gas/testsuite/gas/m68hc11/abi-m68hc11-32-32.d b/gas/testsuite/gas/m68hc11/abi-m68hc11-32-32.d new file mode 100644 index 0000000000..5d46ab8dd7 --- /dev/null +++ b/gas/testsuite/gas/m68hc11/abi-m68hc11-32-32.d @@ -0,0 +1,7 @@ +#objdump: -p +#as: -m68hc11 -mlong -mshort-double +#name: Elf flags 68HC11 32-bit int, 32-bit double +#source: abi.s + +.*: +file format elf32\-m68hc11 +private flags = 1:\[abi=32-bit int, 32-bit double, cpu=HC11\] \[memory=flat\] diff --git a/gas/testsuite/gas/m68hc11/abi-m68hc11-32-64.d b/gas/testsuite/gas/m68hc11/abi-m68hc11-32-64.d new file mode 100644 index 0000000000..a8c0c6fa6e --- /dev/null +++ b/gas/testsuite/gas/m68hc11/abi-m68hc11-32-64.d @@ -0,0 +1,7 @@ +#objdump: -p +#as: -m68hc11 -mlong +#name: Elf flags 68HC11 32-bit int, 64-bit double +#source: abi.s + +.*: +file format elf32\-m68hc11 +private flags = 3:\[abi=32-bit int, 64-bit double, cpu=HC11\] \[memory=flat\] diff --git a/gas/testsuite/gas/m68hc11/abi.s b/gas/testsuite/gas/m68hc11/abi.s new file mode 100644 index 0000000000..a5016ebe63 --- /dev/null +++ b/gas/testsuite/gas/m68hc11/abi.s @@ -0,0 +1,4 @@ + .sect .text + .globl L1 +L1: + rts diff --git a/gas/testsuite/gas/m68hc11/m68hc11.exp b/gas/testsuite/gas/m68hc11/m68hc11.exp index b1513906c9..8764777742 100644 --- a/gas/testsuite/gas/m68hc11/m68hc11.exp +++ b/gas/testsuite/gas/m68hc11/m68hc11.exp @@ -32,6 +32,7 @@ proc gas_m68hc11_opcode_list { flags expect_count } { gas_m68hc11_opcode_list "-m68hc11" 149 gas_m68hc11_opcode_list "-m68hc12" 192 +gas_m68hc11_opcode_list "-m68hcs12" 192 # Test for a message produced when assembling a file @@ -140,6 +141,11 @@ gas_m68hc11_error "-m68hc12" "movb 200,x,3,y\n" \ gas_m68hc11_error "-m68hc12" "movb 2,x,300,y\n" \ "Offset out of 5-bit range for movw/movb insn: 300" +setup_xfail m6811-*-* +setup_xfail m6812-*-* +gas_m68hc11_error "-m68hc12" "movb 2,x,bar,y\nbar=300\n" \ + "Offset out of 5-bit range for movw/movb insn: 300" + # ------------------ # Specific commands gas_m68hc11_warning "" ".mode \"bar\"\n" "Invalid mode: .bar." @@ -153,6 +159,9 @@ run_dump_test lbranch run_dump_test all_insns run_dump_test insns-dwarf2 run_dump_test lbranch-dwarf2 +run_dump_test abi-m68hc11-16-64 +run_dump_test abi-m68hc11-16-32 +run_dump_test abi-m68hc11-32-64 # Compliance with Motorola Assembly Language Input Standard run_dump_test malis -- 2.11.0