In scanasm.exp we do this:
proc scan-assembler { args } {
upvar 2 name testcase
set output_file "[file rootname [file tail $testcase]].s"
However, in dejagnu, $name may have compiler switches appended to it:
# We append the compilation flags, if any, to ensure that the test case
# names are unique.
if { "$tool_flags" != "" } {
set name "$name $tool_flags"
}
Perhaps we want to add this line to scanasm, in various places, to
strip off the compiler switches?
set testcase [lindex $testcase 0]
