This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch RFC] Stop gcc.target/i386/math-torture tests running on non x86
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 05 Nov 2006 10:24:32 +0900 (JST)
- Subject: [patch RFC] Stop gcc.target/i386/math-torture tests running on non x86
Hi,
I've seen some FAILs for non x86 targets on gcc-testresults like
FAIL: gcc.target/i386/math-torture/lceil.c
FAIL: gcc.target/i386/math-torture/lfloor.c
Please see the result for arm-non-eabi
http://gcc.gnu.org/ml/gcc-testresults/2006-11/msg00155.html
for example.
It seems that there is no guard to stop gcc.target/i386/math-torture
tests running on non x86 targets.
The patch below copies 3 lines from gcc.target/i386/i386.exp
to gcc.target/i386/math-torture/math-torture.exp for it.
Regards,
kaz
--
:ADDPATCH testsuite:
2006-11-05 Kaz Kojima <kkojima@gcc.gnu.org>
* gcc.target/i386/math-torture/math-torture.exp: Run on
i?86*-*-* and x86_64-*-* only.
diff -uprN ORIG/trunk/gcc/testsuite/gcc.target/i386/math-torture/math-torture.exp
--- ORIG/trunk/gcc/testsuite/gcc.target/i386/math-torture/math-torture.exp 2006-10-27 10:20:20.000000000 +0900
+++ LOCAL/trunk/gcc/testsuite/gcc.target/i386/math-torture/math-torture.exp 2006-11-03 11:01:29.000000000 +0900
@@ -1,5 +1,9 @@
# This harness is for tests that should be run at all optimisation levels.
+if { ![istarget i?86*-*-*] && ![istarget x86_64-*-*] } then {
+ return
+}
+
set TORTURE_OPTIONS [list \
{ -O0 } \
{ -O0 -mfpmath=387 } \