9816cc76e28fef37b510d618ab235e1297f392b8
[deliverable/binutils-gdb.git] / gas / testsuite / gas / gas.exp
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
10 gas_init
11
12 # List of optional assembler options that are likely to alter the assembler's
13 # behavior. Keep this set small, since its power set generates the list of
14 # test cases run. Suggested: listings (shouldn't affect outcome drastically
15 # but does), pic?, ...
16 set stdoptlist "-a>"
17
18 #
19 # Target-independent tests
20 #
21
22 gas_test "p2425.s" "" $stdoptlist "pcrel values in assignment"
23
24 #
25 # Some m68k-coff tests
26 #
27 if [istarget m68*-*-coff] then {
28 gas_test "p2430.s" "" $stdoptlist "local branch not in text section"
29
30 gas_test "p2430a.s" "" $stdoptlist "local branch not in text section"
31
32 gas_test "t1.s" "" $stdoptlist "multiple .file directives"
33
34 gas_test "p2389.s" "" $stdoptlist "bss fill"
35 gas_test_error "p2389a.s" "" "detect bss fill with non-zero data"
36
37 if [file exists "$testdir/p2411.s"] then {
38 gas_test "p2411.s" "" $stdoptlist "PR 2411"
39 }
40 }
41
42 #
43 # Some generic m68k tests
44 #
45 if [istarget m68*-*-*] then {
46 #
47 # Operand size dependent on offset computed using operand size
48 #
49 if [file exists "$testdir/p2425a.s"] then {
50 gas_test "p2425a.s" "" $stdoptlist "PR 2425"
51 }
52
53 gas_test "t2.s" "" $stdoptlist "cross-section branch"
54 }
55
56 #
57 # Solaris-2 on SPARC tests
58 #
59 # The two compilers, cc and gcc, generate quite different debugging
60 # records. Verify that we can accept both.
61 #
62 if [istarget sparc-*-solaris2*] then {
63 gas_test "sol-cc.s" "" $stdoptlist "SPARC Solaris cc -g"
64 gas_test "sol-gcc.s" "" $stdoptlist "SPARC Solaris gcc -g"
65 }
This page took 0.044177 seconds and 3 git commands to generate.