2 # These tests should be valid on all targets.
5 # I think currently all targets fail this one when listings are enabled.
6 gas_test "p2425.s" "" "" "pcrel values in assignment"
8 # p1480.s uses a ".space" directive which for most assemblers means
9 # "allocate some space". On the PA it means "switch into this space".
11 # Therefore this test (as it is currently written) is completely bogus
12 # for any PA target. Do not bother trying to run it and just claim
14 if [istarget hppa*-*-*] then {
16 fail "simplifiable double subtraction"
18 gas_test "p1480.s" "" "-a>" "simplifiable double subtraction"
21 gas_test "float.s" "" "" "simple FP constants"
23 # This test is meaningless for the PA; the difference of two undefined
24 # symbols is something that is (and must be) supported on the PA.
25 if ![istarget hppa*-*-*] then {
26 # the h8300 fails because we skip all the logic in fixup_segment
27 setup_xfail "h8300*-*-*"
28 gas_test_error "diff1.s" "" "difference of two undefined symbols"
32 set testname "comment.s: comments in listings"
37 gas_start "comment.s" "-al"
39 # Apparently CRLF is received when using ptys for subprocesses; hence the
42 -re "^ +1\[ \t\]+# This\[^\n\]*\n" { set x1 1 }
43 -re "^ +2\[ \t\]+# correctly\[^\n\]*\n" { set x2 1 }
44 -re "^ +3\[ \t\]+/. C comments too. ./\r?\n" { set x3 1 }
46 timeout { perror "timeout\n"; break }
51 if [all_ones $x1 $x2 $x3] then { pass $testname } else { fail $testname }
57 # Test x930509a -- correct assembly of differences involving forward
62 set testname "difference between forward references"
64 gas_start "x930509.s" "-al"
66 # We need to accomodate both byte orders here.
67 # If ".long" means an 8-byte value on some target someday, this test will have
70 -re "^ +1 .... 0000 *0000" { fail $testname; set x 1 }
71 -re "^ +1 .... 0400 *0000" { pass $testname; set x 1 }
72 -re "^ +1 .... 0000 *0004" { pass $testname; set x 1 }
74 timeout { perror "timeout\n"; break }
79 if !$x then { fail $testname }
82 # This test is meaningless for the PA; the difference of two symbols
83 # must not be resolved by the assembler.
84 if ![istarget hppa*-*-*] then {
85 # the h8300 fails because we skip all the logic in fixup_segment
86 setup_xfail "h8300*-*-*"
87 # the vax fails because VMS can apparently actually handle this
88 # case in relocs, so gas doesn't handle it itself.
89 setup_xfail "vax*-*-vms*"
93 if ![istarget hppa*-*-*] then {
97 # This test is for any COFF target.
98 if { [istarget *-*-coff*] \
99 || [istarget *-*-pe*] \
100 || [istarget a29k-*-udi*] \
101 || [istarget a29k-*-ebmon*] \
102 || [istarget a29k-*-sym*] \
103 || [istarget a29k-*-vxworks*] \
104 || [istarget i*86-*-aix*] \
105 || [istarget i*86-*-sco*] \
106 || [istarget i*86-*-isc*] \
107 || [istarget i*86-*-go32*] \
108 || [istarget i*86-*-cygwin*] \
109 || [istarget i*86-*-*nt] \
110 || ([istarget i960-*-vxworks5.*] && ![istarget i960-*-vxworks5.0*]) } {
111 run_dump_test cofftag
114 # FIXME: this is here cause of a bug in DejaGnu 1.1.1. When it is no longer
115 # in use, then this can be removed.
116 if [info exists errorInfo] then {