summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/macros/macros.exp
blob: 4a424bd271a3ffe63d84a5c5819f2fc7dfe76332 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Run some tests of gas macros.

if { ![istarget hppa*-*-*] || [istarget *-*-linux*] } {
    run_dump_test test1
}

if ![istarget *c54x*-*-*] {
    run_dump_test test2
}

run_dump_test test3

if ![istarget *c54x*-*-*] {
    run_dump_test irp
    run_dump_test rept
}


gas_test_error "err.s" "" "macro infinite recursion"

case $target_triplet in {
    { hppa*-*-* } { if [istarget *-*-linux*] { run_dump_test semi } }
    { *c54x*-*-* } { }
    default {
	run_dump_test semi
    }
}

if { ![istarget hppa*-*-*] || [istarget *-*-linux*]} {
    # FIXME: Due to macro mishandling of ONLY_STANDARD_ESCAPES.
    setup_xfail cris-*-*
    setup_xfail powerpc-*-aix*
    setup_xfail sh*-*-*
    setup_xfail z8k*-*-*
    setup_xfail h8300*-*-*
    # FIXME: Due to difference in what "consecutive octets" means.
    setup_xfail *c54x*-*-*
    run_dump_test strings
}