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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [costmodel/] [spu/] [spu-costmodel-vect.exp] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
# Copyright (C) 1997, 2004, 2005, 2006, 2007 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
# Exit immediately if this isn't a powerpc target.
23
if { ![istarget spu*-*-*] } then {
24
  return
25
}
26
 
27
 
28
# Set up flags used for tests that don't specify options.
29
set DEFAULT_VECTCFLAGS ""
30
 
31
# These flags are used for all targets.
32
lappend DEFAULT_VECTCFLAGS "-O2" "-ftree-vectorize" "-fvect-cost-model"
33
 
34
# If the target system supports vector instructions, the default action
35
# for a test is 'run', otherwise it's 'compile'.  Save current default.
36
# Executing vector instructions on a system without hardware vector support
37
# is also disabled by a call to check_vect, but disabling execution here is
38
# more efficient.
39
global dg-do-what-default
40
set save-dg-do-what-default ${dg-do-what-default}
41
 
42
set dg-do-what-default run
43
 
44
# Initialize `dg'.
45
dg-init
46
 
47
lappend DEFAULT_VECTCFLAGS "-fdump-tree-vect-details"
48
 
49
# Main loop.
50
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/costmodel-pr*.\[cS\]]]  \
51
        "" $DEFAULT_VECTCFLAGS
52
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/costmodel-vect-*.\[cS\]]]  \
53
        "" $DEFAULT_VECTCFLAGS
54
 
55
#### Tests with special options
56
global SAVED_DEFAULT_VECTCFLAGS
57
set SAVED_DEFAULT_VECTCFLAGS $DEFAULT_VECTCFLAGS
58
 
59
# -ffast-math tests
60
set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS
61
lappend DEFAULT_VECTCFLAGS "-ffast-math"
62
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/costmodel-fast-math-vect*.\[cS\]]]  \
63
        "" $DEFAULT_VECTCFLAGS
64
 
65
# Clean up.
66
set dg-do-what-default ${save-dg-do-what-default}
67
 
68
# All done.
69
dg-finish

powered by: WebSVN 2.1.0

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