]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.target/frv/frv.exp
c-common.c (c_common_truthvalue_conversion): Use LOCATION to build NE_EXPR operations...
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / frv / frv.exp
CommitLineData
2495e879
RS
1# The name of each test starts with the architecture it requires. Tests that
2# work on all variants start with "all".
3
4if {![istarget frv-*-*]} {
5 return 0
6}
7
8load_lib gcc-dg.exp
9
10# Find out which architecture is used by default.
11set mainarch "fr500"
12foreach 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
17 }
18}
19
20# Set $archs to "all" plus the list of architectures we can test.
21set archs [list "all" $mainarch]
22switch $mainarch {
23 fr405 { lappend archs fr400 }
24 fr450 { lappend archs fr405 fr400 }
25}
26
27# Set $files to the list of files we can test.
28set files ""
29foreach arch $archs {
30 lappend files [lsort [glob -nocomplain $srcdir/$subdir/${arch}*.c]]
31}
32
33dg-init
34gcc-dg-runtest [eval concat $files] ""
35dg-finish