* gas/i386/i386.exp: Group ELF specific tests together. Move the pcrel
authorNick Clifton <nickc@redhat.com>
Fri, 27 Aug 2004 07:10:30 +0000 (07:10 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 27 Aug 2004 07:10:30 +0000 (07:10 +0000)
test into the ELF only section.  Use is_elf_format to test for ELF based
toolchains.

gas/testsuite/ChangeLog
gas/testsuite/gas/i386/i386.exp

index 2c79c2da5105355efc69a4181421eab0350f7cd5..a3338efba23dd3bb4c01e0916b7c26dd97231119 100644 (file)
@@ -1,3 +1,9 @@
+2004-08-26  Nick Clifton  <nickc@redhat.com>
+
+       * gas/i386/i386.exp: Group ELF specific tests together.  Move the
+       pcrel test into the ELF only section.  Use is_elf_format to test
+       for ELF based toolchains.
+
 2004-08-25  H.J. Lu  <hongjiu.lu@intel.com>
 
        * gas/all/gas.exp: Use `string match ""' instead of `eq ""'.
index bfd7cd59a0ef5acc1b32d02068c7cb797d7e16b3..f95e2f495e250df772f92002fff2b036784fee1c 100644 (file)
@@ -54,38 +54,30 @@ if [expr ([istarget "i*86-*-*"] ||  [istarget "x86_64-*-*"]) && [gas_32_check]]
     run_dump_test "ssemmx2"
     run_dump_test "sse2"
     run_dump_test "absrel"
-    run_dump_test "pcrel"
     run_dump_test "sub"
     run_dump_test "prescott"
     run_dump_test "divide"
     run_dump_test "padlock"
 
-    # PIC is only supported on ELF targets.
-    if { ([istarget "*-*-elf*"] || [istarget "*-*-linux*"] )
-        && ![istarget *-*-linux*aout*]
-        && ![istarget *-*-linux*oldld*] } then {
-       run_dump_test "intelpic"
-    }
-
     # These tests require support for 8 and 16 bit relocs,
     # so we only run them for ELF and COFF targets.
-    if {[istarget "*-*-elf*"] || [istarget "*-*-linux*"] || [istarget "*-*-coff*"]} then {
+    if {[is_elf_format] || [istarget "*-*-coff*"]} then {
        run_dump_test "reloc"
        run_dump_test "jump16"
        run_list_test "white" "-al --listing-lhs-width=3"
     }
 
-    # Do they only work for ELF?
-    if { ([istarget "*-*-elf*"]                
-         || [istarget "*-*-linux*"]
-        && ![istarget *-*-linux*aout*]
-        && ![istarget *-*-linux*oldld*])
-    } then {
+    # ELF specific tests
+    if [is_elf_format] then {
+       # PIC is only supported on ELF targets.
+       run_dump_test "intelpic"
+
        run_dump_test "relax"
        run_dump_test "gotpc"
        run_dump_test "tlsd"
        run_dump_test "tlspic"
        run_dump_test "tlsnopic"
+       run_dump_test "pcrel"
     }
 
     # This is a PE specific test.
This page took 0.028445 seconds and 4 git commands to generate.