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]

Re: [PATCH]: Resolve mainline builtin sqrt issues



Within hours of Richard Henderson's advice to watch my indentation,
I manage to screw it up again.  My sincere apologies.  The testcase
should have read:

*** /dev/null	Tue May  5 14:32:27 1998
--- 20011114-1.c	Wed Nov 14 18:13:11 2001
***************
*** 0 ****
--- 1,28 ----
+ /* Copyright (C) 2001  Free Software Foundation.
+
+    Test that __builtin_fsqrt is implemented correctly.
+
+    Written by Roger Sayle, 11/14/2001.  */
+
+ extern void abort (void);
+
+ int
+ main ()
+ {
+   if (__builtin_fsqrt (-1.0) != 1.0)
+     abort ();
+   return 0;
+ }
+
+ double
+ fsqrt (double x)
+ {
+   abort ();
+ }
+
+ double
+ sqrt (double x)
+ {
+   return 1.0;
+ }
+

--
Roger Sayle,                         E-mail: roger@eyesopen.com
OpenEye Scientific Software,         WWW: http://www.eyesopen.com/
Suite 1107, 3600 Cerrillos Road,     Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507.         Fax: (+1) 505-438-3470


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