From 70a3140046a45ac1976a1bfe27ab0fdf5e4b0909 Mon Sep 17 00:00:00 2001 From: Chris Demetriou Date: Mon, 29 Jul 2002 21:07:12 +0000 Subject: [PATCH] [ gas/testsuite/ChangeLog ] 2002-07-26 Chris Demetriou * gas/mips/elf_ase_mips16.d: New file to test ELF MIPS16 ASE marking. * gas/mips/elf_ase_mips16.s: Likewise. * gas/mips/mips.exp: Run the new test. [ ld/testsuite/ChangeLog ] 2002-07-26 Chris Demetriou * ld-mips-elf/mips16-1.d: Check that ASE flag is actually set. --- gas/testsuite/ChangeLog | 6 ++++++ gas/testsuite/gas/mips/elf_ase_mips16.d | 8 ++++++++ gas/testsuite/gas/mips/elf_ase_mips16.s | 3 +++ gas/testsuite/gas/mips/mips.exp | 3 +++ ld/testsuite/ChangeLog | 4 ++++ ld/testsuite/ld-mips-elf/mips16-1.d | 6 +++++- 6 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 gas/testsuite/gas/mips/elf_ase_mips16.d create mode 100644 gas/testsuite/gas/mips/elf_ase_mips16.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 9860719..76a4462 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2002-07-29 Chris Demetriou + + * gas/mips/elf_ase_mips16.d: New file to test ELF MIPS16 ASE marking. + * gas/mips/elf_ase_mips16.s: Likewise. + * gas/mips/mips.exp: Run the new test. + 2002-07-26 Alan Modra * gas/ppc/altivec.d: Invoke "as" with "-a32". diff --git a/gas/testsuite/gas/mips/elf_ase_mips16.d b/gas/testsuite/gas/mips/elf_ase_mips16.d new file mode 100644 index 0000000..df746b9 --- /dev/null +++ b/gas/testsuite/gas/mips/elf_ase_mips16.d @@ -0,0 +1,8 @@ +# name: ELF MIPS16 ASE markings +# source: elf_ase_mips16.s +# objdump: -p +# as: -mips16 + +.*:.*file format.*mips.* +private flags = [0-9a-f]*[4-7c-f]......: .*[[,]mips16[],].* + diff --git a/gas/testsuite/gas/mips/elf_ase_mips16.s b/gas/testsuite/gas/mips/elf_ase_mips16.s new file mode 100644 index 0000000..cf5b2e5 --- /dev/null +++ b/gas/testsuite/gas/mips/elf_ase_mips16.s @@ -0,0 +1,3 @@ +# Test of MIPS16 ASE file markings. + + # no actual contents necessary! diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index bf7cb46..1b02f71 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -180,6 +180,9 @@ if { [istarget mips*-*-*] } then { run_dump_test "elf_e_flags3" run_dump_test "elf_e_flags4" + # Verify that ASE markings are handled properly. + if { !$no_mips16 } { run_dump_test "elf_ase_mips16" } + run_dump_test "mips-gp32-fp32-pic" run_dump_test "mips-gp32-fp64-pic" run_dump_test "mips-gp64-fp32-pic" diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 28d551e..ca4509a 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-07-29 Chris Demetriou + + * ld-mips-elf/mips16-1.d: Check that ASE flag is actually set. + 2002-07-26 Richard Sandiford * ld-mips-elf/mips16-1.d, diff --git a/ld/testsuite/ld-mips-elf/mips16-1.d b/ld/testsuite/ld-mips-elf/mips16-1.d index 2b99668..77d1316 100644 --- a/ld/testsuite/ld-mips-elf/mips16-1.d +++ b/ld/testsuite/ld-mips-elf/mips16-1.d @@ -1,5 +1,9 @@ #source: mips16-1a.s -no-mips16 #source: mips16-1b.s -mips16 #ld: -r -#objdump: -d +#objdump: -pd + +.*:.*file format.*mips.* +private flags = [0-9a-f]*[4-7c-f]......: .*[[,]mips16[],].* + #pass -- 2.7.4