1 # Run some tests of gas macros.
3 proc run_list_test { name opts } {
5 set testname "macros $name"
6 set file $srcdir/$subdir/$name
7 gas_run ${name}.s $opts ">&dump.out"
8 if { [regexp_diff "dump.out" "${file}.l"] } then {
10 verbose "output is [file_contents "dump.out"]" 2
16 if { ![istarget hppa*-*-*] || [istarget *-*-linux*] } {
20 if { ![istarget *c54x*-*-*] && ![istarget *c4x*-*-*] } {
26 if { ![istarget *c54x*-*-*] && ![istarget *c4x*-*-*] } {
33 gas_test_error "err.s" "" "macro infinite recursion"
35 gas_test "and.s" "" "" "logical and in macro definition"
37 case $target_triplet in {
38 { hppa*-*-* } { if [istarget *-*-linux*] { run_dump_test semi } }
46 if { ![istarget hppa*-*-*] || [istarget *-*-linux*] } {
47 # FIXME: Due to macro mishandling of ONLY_STANDARD_ESCAPES.
48 setup_xfail "avr-*" "cris-*" "crisv32-*" "msp430-*"
50 # These fail due to NO_STRING_ESCAPES
51 setup_xfail "powerpc*-*-aix*" "powerpc*-*-beos*" "powerpc*-*-macos*"
52 setup_xfail "powerpc*-*-pe" "powerpc*-*-*win*"
53 setup_xfail "rs6000-*-*"
55 # FIXME: Due to difference in what "consecutive octets" means.
56 setup_xfail "*c4x*-*-*" "*c54x*-*"
65 run_list_test badarg ""
67 run_list_test redef ""