OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [frv/] [frv.exp] - Blame information for rev 844

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
# The name of each test starts with the architecture it requires.  Tests that
2
# work on all variants start with "all".
3
 
4
if {![istarget frv-*-*]} {
5
    return 0
6
}
7
 
8
load_lib gcc-dg.exp
9
 
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
17
    }
18
}
19
 
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 }
25
}
26
 
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]]
31
}
32
 
33
dg-init
34
gcc-dg-runtest [eval concat $files] ""
35
dg-finish

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.