1 # ??? This probably shouldn't be replicated here...
2 proc run_list_test { name opts } {
4 set testname "lns $name"
5 set file $srcdir/$subdir/$name
6 gas_run ${name}.s $opts ">&dump.out"
7 if { [regexp_diff "dump.out" "${file}.l"] } then {
9 verbose "output is [file_contents "dump.out"]" 2
15 if ![is_elf_format] then {
19 run_list_test "lns-diag-1" ""
21 # ??? Won't work on targets that don't have a bare "nop" insn.
22 # Perhaps we could arrange for an include file or something that
24 # Nor does it work on targets that do not generate line number
28 && ![istarget ia64*-*-*]
29 && ![istarget i370-*-*]
30 && ![istarget i960-*-*]
31 && ![istarget mcore-*-*]
32 && ![istarget or32-*-*]
33 && ![istarget s390*-*-*]
35 # Use alternate file for targets using DW_LNS_fixed_advance_pc opcodes.
36 if { [istarget xtensa-*-*] } {
37 run_dump_test "lns-common-1-alt"
39 run_dump_test "lns-common-1"