This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

tweak 26_numerics/complex/pow.cc for alpha


This testcase generates a denormal underflow condition.  Without -mieee
this results in SIGFPE on alpha.


r~


        * testsuite/26_numerics/complex/pow.cc: Use -mieee on alpha.

Index: testsuite/26_numerics/complex/pow.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/26_numerics/complex/pow.cc,v
retrieving revision 1.1
diff -c -p -d -u -r1.1 pow.cc
--- testsuite/26_numerics/complex/pow.cc	10 Mar 2004 09:16:12 -0000	1.1
+++ testsuite/26_numerics/complex/pow.cc	5 Dec 2004 00:25:26 -0000
@@ -1,5 +1,6 @@
-// PR libbstdc++/10689
+// PR libstdc++/10689
 // Origin: Daniel.Levine@jhuaph.edu
+// { dg-options "-mieee" { target alpha*-*-* } }
 
 #include <complex>
 #include <testsuite_hooks.h>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]