Handle new tests, and new testing modes.
[deliverable/binutils-gdb.git] / gas / testsuite / gas / gas.exp
CommitLineData
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 10gas_init
f70a4714 11
0d0ae7fa
KR
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?, ...
16set stdoptlist "-a>"
17
f70a4714
KR
18#
19# Target-independent tests
20#
21
0d0ae7fa 22gas_test "p2425.s" "" $stdoptlist "pcrel values in assignment"
f70a4714
KR
23
24#
25# Some m68k-coff tests
26#
39d4b519 27if [istarget m68*-*-coff] then {
0d0ae7fa
KR
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"
f70a4714 31
0d0ae7fa 32 gas_test "t1.s" "" $stdoptlist "multiple .file directives"
39d4b519 33
0d0ae7fa
KR
34 gas_test "p2389.s" "" $stdoptlist "bss fill"
35 gas_test_error "p2389a.s" "" "detect bss fill with non-zero data"
96b4e5bb
KR
36
37 if [file exists "$testdir/p2411.s"] then {
0d0ae7fa 38 gas_test "p2411.s" "" $stdoptlist "PR 2411"
96b4e5bb 39 }
39d4b519
KR
40}
41
42#
43# Some generic m68k tests
44#
96b4e5bb 45if [istarget m68*-*-*] then {
f70a4714 46 #
39d4b519 47 # Operand size dependent on offset computed using operand size
f70a4714 48 #
39d4b519 49 if [file exists "$testdir/p2425a.s"] then {
0d0ae7fa 50 gas_test "p2425a.s" "" $stdoptlist "PR 2425"
39d4b519 51 }
96b4e5bb 52
0d0ae7fa 53 gas_test "t2.s" "" $stdoptlist "cross-section branch"
39d4b519
KR
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#
62if [istarget sparc-*-solaris2*] then {
0d0ae7fa
KR
63 gas_test "sol-cc.s" "" $stdoptlist "SPARC Solaris cc -g"
64 gas_test "sol-gcc.s" "" $stdoptlist "SPARC Solaris gcc -g"
f70a4714 65}
This page took 0.027518 seconds and 4 git commands to generate.