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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [math-torture/] [math-torture.exp] - Diff between revs 318 and 338

Only display areas with differences | Details | Blame | View Log

Rev 318 Rev 338
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
#
#
# This file is part of GCC.
# This file is part of GCC.
#
#
# GCC is free software; you can redistribute it and/or modify
# GCC is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
# any later version.
#
#
# GCC is distributed in the hope that it will be useful,
# GCC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with GCC; see the file COPYING3.  If not see
# along with GCC; see the file COPYING3.  If not see
# .
# .
# This harness is for tests that should be run at all optimisation levels.
# This harness is for tests that should be run at all optimisation levels.
load_lib target-supports.exp
load_lib target-supports.exp
# Exit immediately if this isn't a x86 target.
# Exit immediately if this isn't a x86 target.
if { ![istarget i?86*-*-*] && ![istarget x86_64-*-*] } then {
if { ![istarget i?86*-*-*] && ![istarget x86_64-*-*] } then {
  return
  return
}
}
set MATH_TORTURE_OPTIONS [list \
set MATH_TORTURE_OPTIONS [list \
        { -O0 } \
        { -O0 } \
        { -O0 -mfpmath=387 } \
        { -O0 -mfpmath=387 } \
        { -O0 -mfpmath=387 -ffast-math } \
        { -O0 -mfpmath=387 -ffast-math } \
        { -O2 } \
        { -O2 } \
        { -O2 -mfpmath=387 } \
        { -O2 -mfpmath=387 } \
        { -O2 -mfpmath=387 -ffast-math } \
        { -O2 -mfpmath=387 -ffast-math } \
]
]
if { [check_effective_target_sse] } {
if { [check_effective_target_sse] } {
    lappend MATH_TORTURE_OPTIONS \
    lappend MATH_TORTURE_OPTIONS \
        { -O0 -msse -mno-sse2 -mfpmath=sse } \
        { -O0 -msse -mno-sse2 -mfpmath=sse } \
        { -O0 -msse -mno-sse2 -mfpmath=sse,387 } \
        { -O0 -msse -mno-sse2 -mfpmath=sse,387 } \
        { -O0 -msse -mno-sse2 -mfpmath=sse -ffast-math } \
        { -O0 -msse -mno-sse2 -mfpmath=sse -ffast-math } \
        { -O0 -msse -mno-sse2 -mfpmath=sse,387 -ffast-math } \
        { -O0 -msse -mno-sse2 -mfpmath=sse,387 -ffast-math } \
        { -O2 -msse -mno-sse2 -mfpmath=sse } \
        { -O2 -msse -mno-sse2 -mfpmath=sse } \
        { -O2 -msse -mno-sse2 -mfpmath=sse,387 } \
        { -O2 -msse -mno-sse2 -mfpmath=sse,387 } \
        { -O2 -msse -mno-sse2 -mfpmath=sse -ffast-math } \
        { -O2 -msse -mno-sse2 -mfpmath=sse -ffast-math } \
        { -O2 -msse -mno-sse2 -mfpmath=sse,387 -ffast-math } \
        { -O2 -msse -mno-sse2 -mfpmath=sse,387 -ffast-math } \
}
}
if { [check_effective_target_sse2] } {
if { [check_effective_target_sse2] } {
    lappend MATH_TORTURE_OPTIONS \
    lappend MATH_TORTURE_OPTIONS \
        { -O0 -msse -msse2 -mfpmath=sse } \
        { -O0 -msse -msse2 -mfpmath=sse } \
        { -O0 -msse -msse2 -mfpmath=sse,387 } \
        { -O0 -msse -msse2 -mfpmath=sse,387 } \
        { -O0 -msse -msse2 -mfpmath=sse -ffast-math } \
        { -O0 -msse -msse2 -mfpmath=sse -ffast-math } \
        { -O0 -msse -msse2 -mfpmath=sse,387 -ffast-math } \
        { -O0 -msse -msse2 -mfpmath=sse,387 -ffast-math } \
        { -O2 -msse -msse2 -mfpmath=sse } \
        { -O2 -msse -msse2 -mfpmath=sse } \
        { -O2 -msse -msse2 -mfpmath=sse,387 } \
        { -O2 -msse -msse2 -mfpmath=sse,387 } \
        { -O2 -msse -msse2 -mfpmath=sse -ffast-math } \
        { -O2 -msse -msse2 -mfpmath=sse -ffast-math } \
        { -O2 -msse -msse2 -mfpmath=sse,387 -ffast-math } \
        { -O2 -msse -msse2 -mfpmath=sse,387 -ffast-math } \
}
}
load_lib gcc-dg.exp
load_lib gcc-dg.exp
load_lib torture-options.exp
load_lib torture-options.exp
torture-init
torture-init
set-torture-options $MATH_TORTURE_OPTIONS {{}} $LTO_TORTURE_OPTIONS
set-torture-options $MATH_TORTURE_OPTIONS {{}} $LTO_TORTURE_OPTIONS
dg-init
dg-init
gcc-dg-runtest [lsort [glob $srcdir/$subdir/*.c]] ""
gcc-dg-runtest [lsort [glob $srcdir/$subdir/*.c]] ""
torture-finish
torture-finish
dg-finish
dg-finish
 
 

powered by: WebSVN 2.1.0

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