]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - gas/testsuite/gas/macros/macros.exp
Import the binutils-2_15-branch from the sourceware CVS repository,
[FreeBSD/FreeBSD.git] / gas / testsuite / gas / macros / macros.exp
1 # Run some tests of gas macros.
2
3 if { ![istarget hppa*-*-*] || [istarget *-*-linux*] } {
4     run_dump_test test1
5 }
6
7 if { ![istarget *c54x*-*-*] && ![istarget *c4x*-*-*] } {
8     run_dump_test test2
9 }
10
11 run_dump_test test3
12
13 if { ![istarget *c54x*-*-*] && ![istarget *c4x*-*-*] } {
14     run_dump_test irp
15     run_dump_test rept
16 }
17
18
19 gas_test_error "err.s" "" "macro infinite recursion"
20
21 gas_test "and.s" "" "" "logical and in macro definition"
22
23 case $target_triplet in {
24     { hppa*-*-* } { if [istarget *-*-linux*] { run_dump_test semi } }
25     { *c4x*-*-* } { }
26     { *c54x*-*-* } { }
27     default {
28         run_dump_test semi
29     }
30 }
31
32 if { ![istarget hppa*-*-*] || [istarget *-*-linux*] } {
33     # FIXME: Due to macro mishandling of ONLY_STANDARD_ESCAPES.
34     setup_xfail "avr-*" "cris-*"
35
36     # These fail due to NO_STRING_ESCAPES
37     setup_xfail "powerpc*-*-aix*" "powerpc*-*-beos*" "powerpc*-*-macos*"
38     setup_xfail "powerpc*-*-mpw*" "powerpc*-*-pe" "powerpc*-*-*win*"
39     setup_xfail "rs6000-*-*"
40
41     # FIXME: Due to difference in what "consecutive octets" means.
42     setup_xfail "*c4x*-*-*" "*c54x*-*"
43     run_dump_test strings
44 }
45
46 run_dump_test app1
47 run_dump_test app2
48 run_dump_test app3
49 run_dump_test app4