re PR rtl-optimization/9325 (wrong conversion of constants: (int)(float)(int) (INT_MAX))
authorRoger Sayle <roger@eyesopen.com>
Tue, 14 Oct 2003 13:31:27 +0000 (13:31 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 14 Oct 2003 13:31:27 +0000 (13:31 +0000)
PR optimization/9325
* gcc.c-torture/execute/20031003-1.c: Remove non-portable tests
for overflowing floating point to integer conversion during RTL
simplification.

From-SVN: r72467

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20031003-1.c

index 5cdd008..dd5b191 100644 (file)
@@ -1,3 +1,10 @@
+2003-10-14  Roger Sayle  <roger@eyesopen.com>
+
+       PR optimization/9325
+       * gcc.c-torture/execute/20031003-1.c: Remove non-portable tests
+       for overflowing floating point to integer conversion during RTL
+       simplification.
+
 2003-10-13  Ziemowit Laski  <zlaski@apple.com>
 
        * objc/execute/_cmd.m: Fix typo.
index b60711f..3337d33 100644 (file)
@@ -12,31 +12,12 @@ int f2()
   return (int)(float)(2147483647);
 }
 
-int f3()
-{
-  float a = 2147483648.0f;
-  return (int)a;
-}
-
-int f4()
-{
-  int a = 2147483647;
-  float b = (float)a;
-  return (int)b;
-}
-
 int main()
 {
   if (f1() != 2147483647)
     abort ();
   if (f2() != 2147483647)
     abort ();
-#ifdef __OPTIMIZE__
-  if (f3() != 2147483647)
-    abort ();
-  if (f4() != 2147483647)
-    abort ();
-#endif
   return 0;
 }