Commit | Line | Data |
---|---|---|
f70a4714 KR |
1 | # syntax: |
2 | # | |
3 | # gas_test_stdout args regexp testname | |
4 | # looks for regexp on stdout | |
5 | # | |
6 | # gas_test args testname | |
7 | # just checks that exit status is zero | |
8 | # | |
9 | ||
39d4b519 | 10 | gas_init |
f70a4714 KR |
11 | |
12 | # | |
13 | # Target-independent tests | |
14 | # | |
15 | ||
96b4e5bb | 16 | gas_test "p2425.s" "" "pcrel values in assignment" |
f70a4714 | 17 | |
96b4e5bb | 18 | gas_test_ignore_stdout "p2425.s" "-al" "pcrel values in assignment, with listing" |
f70a4714 KR |
19 | |
20 | # | |
21 | # Some m68k-coff tests | |
22 | # | |
39d4b519 | 23 | if [istarget m68*-*-coff] then { |
96b4e5bb KR |
24 | gas_test "p2430.s" "" "local branch not in text section" |
25 | gas_test_ignore_stdout "p2430.s" "-al" "local branch not in text section (with listing)" | |
f70a4714 | 26 | |
96b4e5bb | 27 | gas_test "t1.s" "" "multiple .file directives" |
39d4b519 | 28 | |
96b4e5bb KR |
29 | gas_test "p2389.s" "" "bss fill" |
30 | gas_test_error "p2389a.s" "" "bss fill with non-zero data" | |
31 | ||
32 | if [file exists "$testdir/p2411.s"] then { | |
33 | gas_test "p2411.s" "" "PR 2411" | |
34 | } | |
39d4b519 KR |
35 | } |
36 | ||
37 | # | |
38 | # Some generic m68k tests | |
39 | # | |
96b4e5bb | 40 | if [istarget m68*-*-*] then { |
f70a4714 | 41 | # |
39d4b519 | 42 | # Operand size dependent on offset computed using operand size |
f70a4714 | 43 | # |
39d4b519 | 44 | if [file exists "$testdir/p2425a.s"] then { |
96b4e5bb | 45 | gas_test "p2425a.s" "" "PR 2425" |
39d4b519 | 46 | } |
96b4e5bb KR |
47 | |
48 | gas_test "t2.s" "" "cross-section branch" | |
39d4b519 KR |
49 | } |
50 | ||
51 | # | |
52 | # Solaris-2 on SPARC tests | |
53 | # | |
54 | # The two compilers, cc and gcc, generate quite different debugging | |
55 | # records. Verify that we can accept both. | |
56 | # | |
57 | if [istarget sparc-*-solaris2*] then { | |
96b4e5bb KR |
58 | gas_test "sol-cc.s" "" "SPARC Solaris cc -g" |
59 | gas_test "sol-gcc.s" "" "SPARC Solaris gcc -g" | |
f70a4714 | 60 | } |