Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / gcc.target / frv / frv.exp
blobf2c4359b4260c2c2780e56b7cec4366aeaa7a7da
1 # The name of each test starts with the architecture it requires. Tests that
2 # work on all variants start with "all".
4 if {![istarget frv-*-*]} {
5 return 0
8 load_lib gcc-dg.exp
10 # Find out which architecture is used by default.
11 set mainarch "fr500"
12 foreach flag [target_info multilib_flags] {
13 regexp "^-mcpu=(.*)" $flag dummy mainarch
14 if {$flag == "-mno-pack"} {
15 # -mno-pack disables media intrinsics.
16 return 0
20 # Set $archs to "all" plus the list of architectures we can test.
21 set archs [list "all" $mainarch]
22 switch $mainarch {
23 fr405 { lappend archs fr400 }
24 fr450 { lappend archs fr405 fr400 }
27 # Set $files to the list of files we can test.
28 set files ""
29 foreach arch $archs {
30 lappend files [lsort [glob -nocomplain $srcdir/$subdir/${arch}*.c]]
33 dg-init
34 gcc-dg-runtest [eval concat $files] ""
35 dg-finish