Add CRX insns: pushx, popx
[deliverable/binutils-gdb.git] / gas / testsuite / gas / all / gas.exp
index c0d66769ba6b83ff423fa2d0140fca910ac0e7af..df8d71d0276d50a78909c8767f9bb2a9483305d4 100644 (file)
@@ -11,14 +11,22 @@ gas_test "p2425.s" ""   "" "pcrel values in assignment"
 # Therefore this test (as it is currently written) is completely bogus
 # for any PA target.  Do not bother trying to run it and just claim
 # it fails.
-if [istarget hppa*-*-*] then {
+#
+# The C54x uses ".space" to allocate bits, and requires absolute expressions;
+# The ".space" directive is taken care of in the C54x-specific tests, so fail
+#  here 
+#
+if { [istarget hppa*-*-*] || [istarget *c54x*-*-*] } then {
     setup_xfail *-*-*
     fail "simplifiable double subtraction"
 } else {
     gas_test "p1480.s" "" "-a>" "simplifiable double subtraction"
 }
 
-gas_test "float.s" ""   "" "simple FP constants"
+# No floating point support in assembly code for CRIS.
+if ![istarget cris-*-*] then {
+    gas_test "float.s" ""   "" "simple FP constants"
+}
 
 # This test is meaningless for the PA; the difference of two undefined
 # symbols is something that is (and must be) supported on the PA.
@@ -65,9 +73,9 @@ proc do_930509a {} {
 # If ".long" means an 8-byte value on some target someday, this test will have
 # to be fixed.
        expect {
-           -re "^ +1 .... 0000 *0000" { fail $testname; set x 1 }
-           -re "^ +1 .... 0400 *0000" { pass $testname; set x 1 }
-           -re "^ +1 .... 0000 *0004" { pass $testname; set x 1 }
+           -re "^ +1 .... 00 ?00 ?00 ?00" { fail $testname; set x 1 }
+           -re "^ +1 .... 04 ?00 ?00 ?00" { pass $testname; set x 1 }
+           -re "^ +1 .... 00 ?00 ?00 ?04" { pass $testname; set x 1 }
            -re "\[^\n\]*\n" { }
            timeout { perror "timeout\n"; break }
            eof { break }
@@ -77,29 +85,32 @@ proc do_930509a {} {
     if !$x then { fail $testname }
 }
 
-# This test is meaningless for the PA; the difference of two symbols
+# This test is meaningless for the PA and CRX; the difference of two symbols
 # must not be resolved by the assembler.
-if ![istarget hppa*-*-*] then {
+# C54x assembler (for compatibility) does not allow differences between
+# forward references
+# C30 counts a four byte offset as a difference of one.
+if { ![istarget hppa*-*-*] &&
+     ![istarget  crx*-*-*] &&
+     ![istarget *c30*-*-*] &&
+     ![istarget *c4x*-*-*] &&
+     ![istarget *c54x*-*-*] } then {
     # the vax fails because VMS can apparently actually handle this
     # case in relocs, so gas doesn't handle it itself.
-    setup_xfail "vax*-*-vms*"
-    setup_xfail "mn10300*-*-*"
-    setup_xfail "mn10200*-*-*"
+    setup_xfail "h8300*-*-elf*" "mn10200*-*-*" "mn10300*-*-*" "vax*-*-vms*"
     do_930509a
 }
 
+# ".struct" and ".align" have different meanings on c54x
+# These directives are done in the c54x-specific tests instead
 case $target_triplet in {
     { hppa*-*-* } { }
-# start-sanitize-sky
-    { dvp-*-* } {
-       run_dump_test struct
-       ;# FIXME: all we need to do is change .text to .vutext in align.d.
-       ;# Instead, align testing is defered to dvp/align.[sd].
-    }
-# end-sanitize-sky
+    { *c4x*-*-* } { }
+    { *c54x*-*-* } { }
     default {
        run_dump_test struct
        run_dump_test align
+       run_dump_test align2
     }
 }
 
@@ -107,7 +118,8 @@ case $target_triplet in {
 # We omit m88k COFF because it uses weird pseudo-op names.
 # We omit the ARM toolchains because they define locals to
 #  start with '.', which eliminates .eos, .text etc from the output.
-if {   ([istarget *-*-coff*] && ![istarget m88*-*-*] && ![istarget arm*-*-coff] && ![istarget thumb*-*-coff]) \
+# Omit c54x, since .tag and .def mean something different on that target
+if {   ([istarget *-*-coff*] && ![istarget m88*-*-*] && ![istarget *arm*-*-coff] && ![istarget thumb*-*-coff] && ![istarget xscale-*-coff] && ![istarget *c4x*-*-coff] && ![istarget *c54x*-*-coff]) \
      ||([istarget *-*-pe*] && ![istarget arm*-*-pe*] && ![istarget thumb*-*-pe*]) \
      || [istarget a29k-*-udi*] \
      || [istarget a29k-*-ebmon*] \
@@ -119,6 +131,7 @@ if {   ([istarget *-*-coff*] && ![istarget m88*-*-*] && ![istarget arm*-*-coff]
      || [istarget i*86-*-go32*] \
      || [istarget i*86-*-cygwin*] \
      || [istarget i*86-*-*nt] \
+     || [istarget i*86-*-interix*] \
      || ([istarget i960-*-vxworks5.*] && ![istarget i960-*-vxworks5.0*]) } {
     run_dump_test cofftag
 }
@@ -130,7 +143,7 @@ proc test_cond {} {
     global subdir
 
     set testname "conditional listings"
-    gas_run cond.s -alc ">dump.out"
+    gas_run cond.s "-alc" ">dump.out"
     if ![string match "" $comp_output] {
        send_log "$comp_output\n"
        fail $testname
@@ -143,10 +156,22 @@ proc test_cond {} {
     }
 }
 
-test_cond
+# This test is not suitable for the PA for various reasons
+# not limited to the fact that it depends on specific section
+# names appearing in the output file.
+# again, p2align doesn't work on c54x target
+case $target_triplet in {
+    { hppa*-*-* } { }
+    { *c4x*-*-* } { }
+    { *c54x*-*-* } { }
+    default {
+        test_cond
+        run_dump_test incbin
+    }
+}
 
-# FIXME: this is here cause of a bug in DejaGnu 1.1.1. When it is no longer
-#        in use, then this can be removed.
-if [info exists errorInfo] then {
-    unset errorInfo
+if {   [istarget "i*86-*-*pe*"] \
+    || [istarget "i*86-*-cygwin*"] \
+    || [istarget "i*86-*-mingw32*"] } {
+  gas_test "fastcall.s" ""   "" "fastcall labels"
 }
This page took 0.026175 seconds and 4 git commands to generate.