2001-07-22 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* gcc.c-torture/execute/ieee/ieee.exp: Only use -ffloat-store only on
i[34567]86-*-*.
Delete handling of ieee_multilib_flags.
Pass -mieee for alpha*-*-* and sh-*-*.
* gcc.c-torture/execute/
20010114-2.c: Move into ieee subdir.
From-SVN: r44238
+2001-07-22 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
+
+ * gcc.c-torture/execute/ieee/ieee.exp: Only use -ffloat-store only on
+ i[34567]86-*-*.
+ Delete handling of ieee_multilib_flags.
+ Pass -mieee for alpha*-*-* and sh-*-*.
+ * gcc.c-torture/execute/20010114-2.c: Move into ieee subdir.
+
2001-07-21 Nathan Sidwell <nathan@codesourcery.com>
Remove old-abi tests.
+++ /dev/null
-extern void exit (int);
-extern void abort (void);
-
-float
-rintf (float x)
-{
- static const float TWO23 = 8388608.0;
-
- if (__builtin_fabs (x) < TWO23)
- {
- if (x > 0.0)
- {
- x += TWO23;
- x -= TWO23;
- }
- else if (x < 0.0)
- {
- x = TWO23 - x;
- x = -(x - TWO23);
- }
- }
-
- return x;
-}
-
-int main (void)
-{
- if (rintf (-1.5) != -2.0)
- abort ();
- exit (0);
-}
--- /dev/null
+extern void exit (int);
+extern void abort (void);
+
+float
+rintf (float x)
+{
+ static const float TWO23 = 8388608.0;
+
+ if (__builtin_fabs (x) < TWO23)
+ {
+ if (x > 0.0)
+ {
+ x += TWO23;
+ x -= TWO23;
+ }
+ else if (x < 0.0)
+ {
+ x = TWO23 - x;
+ x = -(x - TWO23);
+ }
+ }
+
+ return x;
+}
+
+int main (void)
+{
+ if (rintf (-1.5) != -2.0)
+ abort ();
+ exit (0);
+}
strace $tracelevel
}
-if [target_info exists ieee_multilib_flags] {
- set additional_flags [target_info ieee_multilib_flags];
-} else {
- set additional_flags "";
+set additional_flags "";
+
+# We must use -ffloat-store/-mieee to ensure that excess precision on some
+# machines does not cause problems
+if [istarget "i\[34567\]86-*-*"] then {
+ lappend additional_flags "-ffloat-store"
}
-# We must use -ffloat-store to ensure that excess precision on some machines
-# does not cause problems
-lappend additional_flags "-ffloat-store"
+if { [istarget "alpha*-*-*"]
+ || [istarget "sh-*-*"] } then {
+ lappend additional_flags "-mieee"
+}
# load support procs
load_lib c-torture.exp