From 017761eafed655da667785bd75a86e12b31b932f Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 13 Feb 2012 02:31:18 +0000 Subject: [PATCH] * gas/all/gas.exp (redef2): xfail m6811 and m6812. * gas/elf/elf.exp: Use is_elf_format. * gas/symver/symver.exp: Likewise. * gas/m68hc11/m68hc11.exp: Simplify target test. Add -m68hc11 to error tests that pass for hc12. --- gas/testsuite/ChangeLog | 10 ++++++- gas/testsuite/gas/all/gas.exp | 6 +++-- gas/testsuite/gas/elf/elf.exp | 39 +++++++++++++-------------- gas/testsuite/gas/m68hc11/m68hc11.exp | 32 ++++++++++------------ gas/testsuite/gas/symver/symver.exp | 8 +----- 5 files changed, 46 insertions(+), 49 deletions(-) diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 37c52e54fdc..787f60df7da 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,6 +1,14 @@ +2012-02-13 Alan Modra + + * gas/all/gas.exp (redef2): xfail m6811 and m6812. + * gas/elf/elf.exp: Use is_elf_format. + * gas/symver/symver.exp: Likewise. + * gas/m68hc11/m68hc11.exp: Simplify target test. + Add -m68hc11 to error tests that pass for hc12. + 2012-02-11 Kai Tietz - * gas/i386/disp32.d: Adjust lable-pattern. + * gas/i386/disp32.d: Adjust label pattern. 2012-02-08 Kai Tietz diff --git a/gas/testsuite/gas/all/gas.exp b/gas/testsuite/gas/all/gas.exp index 5bcefcf29fc..169fdb46603 100644 --- a/gas/testsuite/gas/all/gas.exp +++ b/gas/testsuite/gas/all/gas.exp @@ -132,9 +132,11 @@ case $target_triplet in { run_dump_test redef # These targets fail redef2 because they disallow redefined # symbols on relocs. - setup_xfail "m68hc*-*-*" "rx-*-*" "vax*-*-*" "z8k-*-*" + setup_xfail "m68hc1*-*-*" "m6811-*-*" "m6812-*-*" + setup_xfail "rx-*-*" "vax*-*-*" "z8k-*-*" run_dump_test redef2 - setup_xfail "m68hc*-*-*" "rx-*-*" "vax*-*-*" "z8k-*-*" + setup_xfail "m68hc1*-*-*" "m6811-*-*" "m6812-*-*" + setup_xfail "rx-*-*" "vax*-*-*" "z8k-*-*" # rs6000-aix disallows redefinition via .comm. setup_xfail "*-*-aix*" # SOM uses a different syntax for .comm diff --git a/gas/testsuite/gas/elf/elf.exp b/gas/testsuite/gas/elf/elf.exp index b6b1f0a2872..927577467c9 100644 --- a/gas/testsuite/gas/elf/elf.exp +++ b/gas/testsuite/gas/elf/elf.exp @@ -37,19 +37,7 @@ proc run_elf_list_test { name suffix opts readelf_opts readelf_pipe } { } # We're testing bits in obj-elf -- don't run on anything else. -if { ([istarget "*-*-*elf*"] - || [istarget "*-*-linux*"] - || [istarget "*-*-gnu*"] - || [istarget "m6811-*"] - || [istarget "m6812-*"] - || [istarget "sparc*-*-solaris*"] - || [istarget "mips*-*-irix6*"] - || [istarget "arm*-*-eabi"]) - && ![istarget *-*-linux*aout*] - && ![istarget *-*-linux*coff*] - && ![istarget *-*-linux*oldld*] - && ![istarget sh64*-*-linux*] -} then { +if { [is_elf_format] } then { set target_machine "" if {[istarget "mips*-*-*"]} then { set target_machine -mips @@ -107,8 +95,13 @@ if { ([istarget "*-*-*elf*"] run_dump_test "group0c" run_dump_test "group1a" run_dump_test "group1b" - run_dump_test "groupautoa" case $target_triplet in { + { hppa64*-*-hpux* } { } + default { + run_dump_test "groupautoa" + } + case $target_triplet in { + { hppa64*-*-hpux* } { } { xtensa*-*-* } { } default { run_dump_test "groupautob" @@ -159,16 +152,20 @@ if { ([istarget "*-*-*elf*"] } run_dump_test "symver" - # The MSP port sets the ELF header's OSABI field to ELFOSABI_STANDALONE. - # The non-eabi ARM ports sets it to ELFOSABI_ARM. - # So for these targets we cannot include an IFUNC symbol type - # in the symbol type test. - if { [istarget "msp*-*-*"] - || [istarget "arm*-*-*"]} then { - run_elf_list_test "type-noifunc" "" "" "-s" "| grep \"1 *\\\[FONTC\\\]\"" + if { [istarget "hppa*-*-hpux*"] } then { + # No indirect functions on non-GNU targets. } else { + # The MSP port sets the ELF header's OSABI field to ELFOSABI_STANDALONE. + # The non-eabi ARM ports sets it to ELFOSABI_ARM. + # So for these targets we cannot include an IFUNC symbol type + # in the symbol type test. + if { [istarget "msp*-*-*"] + || [istarget "arm*-*-*"]} then { + run_elf_list_test "type-noifunc" "" "" "-s" "| grep \"1 *\\\[FONTC\\\]\"" + } else { run_dump_test ifunc-1 run_elf_list_test "type" "" "" "-s" "| grep \"1 *\\\[FIONTCU\\\]\"" + } } run_dump_test "section6" diff --git a/gas/testsuite/gas/m68hc11/m68hc11.exp b/gas/testsuite/gas/m68hc11/m68hc11.exp index 89ad226dded..84dc83de35a 100644 --- a/gas/testsuite/gas/m68hc11/m68hc11.exp +++ b/gas/testsuite/gas/m68hc11/m68hc11.exp @@ -1,14 +1,10 @@ # # Some generic m68HC11 tests # -if ![istarget "m68hc11-*-*"] then { - if ![istarget "m6811-*-*"] then { - if ![istarget "m68hc12-*-*"] then { - if ![istarget "m6812-*-*"] then { - return - } - } - } +if { ![istarget "m68hc1*-*-*"] + && ![istarget "m6811-*-*"] + && ![istarget "m6812-*-*"] } then { + return } # Simple test for --print-opcodes (list of supported opcodes) @@ -80,21 +76,21 @@ proc gas_m68hc11_warning { options line expect } { # ------------------ # 68HC11 error tests -gas_m68hc11_error "" "puld\n" "Opcode .puld. is not recognized" +gas_m68hc11_error "-m68hc11" "puld\n" "Opcode .puld. is not recognized" gas_m68hc11_error "" "ldab\n" "Invalid operand for .ldab." -gas_m68hc11_error "" "ldab 256,x\n" "Operand out of 8-bit range:.*256" -gas_m68hc11_error "" "ldab 257,y\n" "Operand out of 8-bit range:.*257" -gas_m68hc11_error "" "ldab -1,y\n" "Operand out of 8-bit range:.*-1" -gas_m68hc11_error "" "ldab bar,y\nbar=300" "value of 300 too large for field of 1 byte" +gas_m68hc11_error "-m68hc11" "ldab 256,x\n" "Operand out of 8-bit range:.*256" +gas_m68hc11_error "-m68hc11" "ldab 257,y\n" "Operand out of 8-bit range:.*257" +gas_m68hc11_error "-m68hc11" "ldab -1,y\n" "Operand out of 8-bit range:.*-1" +gas_m68hc11_error "-m68hc11" "ldab bar,y\nbar=300" "value of 300 too large for field of 1 byte" gas_m68hc11_error "" "jmp \#23\n" "Immediate operand is not allowed" -gas_m68hc11_error "" "ldab \[d,pc\]\n" "Indirect indexed addressing is not valid for 68HC11" +gas_m68hc11_error "-m68hc11" "ldab \[d,pc\]\n" "Indirect indexed addressing is not valid for 68HC11" gas_m68hc11_error "" "ldab ,t\n" "Spurious .,. or bad indirect register" gas_m68hc11_error "" "ldab 1,t\n" "Garbage at end of instruction:.*,t" gas_m68hc11_error "" "ldab 1,,x\n" "Garbage at end of instruction:.*,x" -gas_m68hc11_error "" "ldab 1,+x\n" "Pre-increment mode is not valid" -gas_m68hc11_error "" "ldab 1,-x\n" "Pre-increment mode is not valid" -gas_m68hc11_error "" "ldab 1,x+\n" "Post-increment mode is not valid" -gas_m68hc11_error "" "ldab 1,x-\n" "Post-decrement mode is not valid" +gas_m68hc11_error "-m68hc11" "ldab 1,+x\n" "Pre-increment mode is not valid" +gas_m68hc11_error "-m68hc11" "ldab 1,-x\n" "Pre-increment mode is not valid" +gas_m68hc11_error "-m68hc11" "ldab 1,x+\n" "Post-increment mode is not valid" +gas_m68hc11_error "-m68hc11" "ldab 1,x-\n" "Post-decrement mode is not valid" gas_m68hc11_error "" "ldd \#65536\n" "Operand out of 16-bit range" gas_m68hc11_error "--short-branchs" "bne 200\n" \ "Operand out of range for a relative branch" diff --git a/gas/testsuite/gas/symver/symver.exp b/gas/testsuite/gas/symver/symver.exp index 6fcae0edab2..5aef3ae8bd3 100644 --- a/gas/testsuite/gas/symver/symver.exp +++ b/gas/testsuite/gas/symver/symver.exp @@ -15,13 +15,7 @@ proc run_error_test { name opts } { } # symver is only supported by ELF targets. -if { ([istarget "*-*-elf*"] - || [istarget "m6811-*"] - || [istarget "m6812-*"] - || [istarget "*-*-linux*"] - || [istarget "*-*-gnu*"]) - && ![istarget *-*-linux*aout*] - && ![istarget *-*-linux*oldld*] } then { +if { [is_elf_format] } then { if {[istarget "ia64-*"]} then { return -- 2.30.2