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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 689 jeremybenn
#   Copyright (C) 2006, 2007, 2008, 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
# GCC testsuite that uses the `dg.exp' driver.
18
 
19
# Load support procs.
20
load_lib gcc-dg.exp
21
 
22
if ![check_effective_target_fgraphite] {
23
  return
24
}
25
 
26
# Remove VALUE from LIST_VARIABLE.
27
proc lremove {list_variable value} {
28
    upvar 1 $list_variable var
29
    set idx [lsearch -exact $var $value]
30
    set var [lreplace $var $idx $idx]
31
}
32
 
33
# The default action for a test is 'compile'.  Save current default.
34
global dg-do-what-default
35
set save-dg-do-what-default ${dg-do-what-default}
36
 
37
# Initialize `dg'.
38
dg-init
39
 
40
set wait_to_run_files [lsort [glob -nocomplain $srcdir/$subdir/*.c ] ]
41
set scop_files        [lsort [glob -nocomplain $srcdir/$subdir/scop-*.c ] ]
42
set id_files          [lsort [glob -nocomplain $srcdir/$subdir/id-*.c ] ]
43
set run_id_files      [lsort [glob -nocomplain $srcdir/$subdir/run-id-*.c ] ]
44
set interchange_files [lsort [glob -nocomplain $srcdir/$subdir/interchange-*.c ] ]
45
set block_files       [lsort [glob -nocomplain $srcdir/$subdir/block-*.c ] ]
46
set vect_files        [lsort [glob -nocomplain $srcdir/$subdir/vect-*.c ] ]
47
 
48
# Tests to be compiled.
49
set dg-do-what-default compile
50
dg-runtest $scop_files        "" "-O2 -fgraphite -fdump-tree-graphite-all"
51
dg-runtest $id_files          "" "-O2 -fgraphite-identity -ffast-math"
52
 
53
# Tests to be run.
54
set dg-do-what-default run
55
dg-runtest $run_id_files      "" "-O2 -fgraphite-identity"
56
dg-runtest $interchange_files "" "-O2 -floop-interchange -fno-loop-block -fno-loop-strip-mine -ffast-math -fdump-tree-graphite-all"
57
dg-runtest $block_files       "" "-O2 -floop-block -fno-loop-strip-mine -fno-loop-interchange -ffast-math -fdump-tree-graphite-all"
58
 
59
# Vectorizer tests, to be run or compiled, depending on target capabilities.
60
global DEFAULT_VECTCFLAGS
61
set DEFAULT_VECTCFLAGS "-O2 -fgraphite-identity -ftree-vectorize -fno-vect-cost-model -fdump-tree-vect-details -ffast-math"
62
 
63
if [check_vect_support_and_set_flags] {
64
    dg-runtest $vect_files        "" $DEFAULT_VECTCFLAGS
65
}
66
 
67
# The default action for the rest of the files is 'compile'.
68
set dg-do-what-default compile
69
foreach f $scop_files        {lremove wait_to_run_files $f}
70
foreach f $id_files          {lremove wait_to_run_files $f}
71
foreach f $run_id_files      {lremove wait_to_run_files $f}
72
foreach f $interchange_files {lremove wait_to_run_files $f}
73
foreach f $block_files       {lremove wait_to_run_files $f}
74
foreach f $vect_files        {lremove wait_to_run_files $f}
75
dg-runtest $wait_to_run_files "" "-ansi -pedantic-errors"
76
 
77
# Clean up.
78
set dg-do-what-default ${save-dg-do-what-default}
79
 
80
# All done.
81
dg-finish

powered by: WebSVN 2.1.0

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