mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
264dcc17cc
Both bfin & cris ports test the C compiler to see if it works, but in their own way. Unify the checks in the common code so we can leverage them in more ports in the future, and collapse the bfin & cris code.
22 lines
555 B
Plaintext
22 lines
555 B
Plaintext
# Analog Devices Blackfin simulator testsuite
|
|
|
|
# Set a default CPU to satisfy bfin-elf-gcc requirements. BF537 should work
|
|
# with all standard Blackfin toolchains.
|
|
set CC_FOR_TARGET "[find_gcc] -mcpu=bf537"
|
|
sim_init
|
|
unset CC_FOR_TARGET
|
|
|
|
if [istarget bfin-*-elf] {
|
|
# all machines
|
|
set all_machs "bfin"
|
|
|
|
foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.\[csS\]]] {
|
|
# If we're only testing specific files and this isn't one of them,
|
|
# skip it.
|
|
if ![runtest_file_p $runtests $src] {
|
|
continue
|
|
}
|
|
run_sim_test $src $all_machs
|
|
}
|
|
}
|