forked from foss-for-synopsys-dwc-arc-processors/toolchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.exp
84 lines (69 loc) · 2.99 KB
/
site.exp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Copyright (C) 2010-2015 Synopsys Inc.
# Contributor Brendan Kehoe <[email protected]>
# Contributor Jeremy Bennett <[email protected]>
# Contributor Anton Kolesov <[email protected]>
# This file is an ARC specific site.exp
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3 of the License, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure we look in the right place for the board description files. Add
# our local boards directories
if ![info exists boards_dir] {
lappend boards_dir "[file dirname $env(DEJAGNU)]/dejagnu"
lappend boards_dir "[file dirname $env(DEJAGNU)]/dejagnu/baseboards"
} else {
set boards_dir "[file dirname $env(DEJAGNU)]/dejagnu"
lappend boards_dir "[file dirname $env(DEJAGNU)]/dejagnu/baseboards"
}
# $target_list is set by the --target_board option. If it is not set, then we
# should use $target_triplet to set a single target board in ${target_list}.
global target_list
case "$target_triplet" in {
{ "arc*-*-elf32" } {
if {! [info exists target_list]} {
# Default is to test on the CGEN simulator
set target_list { "arc-sim" }
}
}
{ "arc*-linux-uclibc" } {
if {! [info exists target_list]} {
# Default is to test on AA4
set target_list { "arc-linux-aa4" }
}
}
default {
# Any other triplet is an error.
error "Unknown target $target_triplet in site.exp."
}
}
# Some GCC tests requires HOST{CC,CFLAGS}, however those variables are not
# defined by test_installed. Thus set them here.
if ![ info exists HOSTCC ] {
set HOSTCC gcc
}
if ![ info exists HOSTCFLAGS ] {
set HOSTCFLAGS "-g -O2"
}
# set TORTURE_OPTIONS [list \
# { -O0 -mARC700 -mdpfp } \
# { -O0 -mARC700 -mdpfp -mno-dpfp-lrsr } \
# { -O1 -mARC700 -mdpfp } \
# { -O2 -mARC700 -mdpfp -mno-dpfp-lrsr } \
# { -O3 -fomit-frame-pointer -mARC700 -mdpfp } \
# { -O3 -fomit-frame-pointer -mARC700 -mdpfp -mno-dpfp-lrsr } \
# { -O3 -fomit-frame-pointer -funroll-loops -mARC700 -mdpfp } \
# { -O3 -fomit-frame-pointer -funroll-loops -mARC700 -mdpfp -mno-dpfp-lrsr } \
# { -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions -mARC700 -mdpfp } \
# { -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions -mARC700 -mdpfp -mno-dpfp-lrsr } \
# { -O3 -g -mARC700 -mdpfp } \
# { -O3 -g -mARC700 -mdpfp -mno-dpfp-lrsr } \
# { -Os -mARC700 -mdpfp } \
# { -Os -mARC700 -mdpfp -mno-dpfp-lrsr } ]
# vim: noexpandtab sts=4 ts=8: