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 fail "simplifiable double subtraction, with listings"
21 gas_test "p1480.s" "" "" "simplifiable double subtraction"
23 gas_test "p1480.s" "-a" "" "simplifiable double subtraction, with listings"
26 gas_test "float.s" "" "" "simple FP constants"
28 gas_test_error "diff1.s" "" "difference of two undefined symbols"
31 set testname "comment.s: comments in listings"
36 gas_start "comment.s" "-al"
38 # Apparently CRLF is received when using ptys for subprocesses; hence the
41 -re "^ +1\[ \t\]+# This\[^\n\]*\n" { set x1 1 }
42 -re "^ +2\[ \t\]+# correctly\[^\n\]*\n" { set x2 1 }
43 -re "^ +3\[ \t\]+/. C comments too. ./\r\n" { set x3 1 }
45 timeout { error "timeout\n"; break }
50 if [all_ones $x1 $x2 $x3] then { pass $testname } else { fail $testname }
56 # Test x930509a -- correct assembly of differences involving forward
61 set testname "difference between forward references"
63 gas_start "x930509.s" "-al"
65 # We need to accomodate both byte orders here.
66 # If ".long" means an 8-byte value on some target someday, this test will have
69 -re "^ +1 .... 00000000" { fail $testname; set x 1 }
70 -re "^ +1 .... 04000000" { pass $testname; set x 1 }
71 -re "^ +1 .... 00000004" { pass $testname; set x 1 }
73 timeout { error "timeout\n"; break }
78 if !$x then { fail $testname }
82 # FIXME: this is here cause of a bug in DejaGnu 1.1.1. When it is no longer
83 # in use, then this can be removed.
84 if [info exists errorInfo] then {