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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [microblaze/] [microblaze.exp] - Blame information for rev 801

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

Line No. Rev Author Line
1 691 jeremybenn
#   Copyright 2009, 2010 Free Software Foundation, Inc.
2
 
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 3 of the License, or
6
# (at your option) any later version.
7
#
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
# GNU General Public License for more details.
12
#
13
# You should have received a copy of the GNU General Public License
14
# along with GCC; see the file COPYING3.  If not see
15
# .
16
 
17
 
18
# MicroBlaze test driver that uses the `dg.exp' driver.
19
 
20
# Exit immediately if this isn't a MicroBlaze target.
21
if { ![istarget microblaze*-*-*] } then {
22
  return
23
}
24
 
25
# Don't execute when we are testing some configuration of GCC or G++.
26
# This we figure out by looking at target_config_cflags which needs to be "" for microblaze.exp
27
if { $target_config_cflags != "" } {
28
  return
29
}
30
 
31
global TORTURE_OPTIONS
32
set TORTURE_OPTIONS [list \
33
                         { -O0 } \
34
                         { -O1 } \
35
                         { -O2 } \
36
                         { -O3 } \
37
                         { -Os } ]
38
 
39
# If a testcase doesn't have special options, use these.
40
global DEFAULT_CFLAGS
41
if ![info exists DEFAULT_CFLAGS] then {
42
    set DEFAULT_CFLAGS " -ansi -pedantic-errors"
43
}
44
 
45
# Load support procs.
46
load_lib gcc-dg.exp
47
 
48
# Initialize `dg'.
49
dg-init
50
 
51
set default_c_flags ""
52
 
53
# Main loop.
54
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/isa/*.\[cSi\]]] \
55
${default_c_flags} ""
56
 
57
gcc-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/others/*.\[cSi\]]] \
58
    "-mcpu=v6.00.a"
59
 
60
 
61
# All done.
62
dg-finish

powered by: WebSVN 2.1.0

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