aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20031003-1.c19
2 files changed, 7 insertions, 19 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5cdd008..dd5b191 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/gcc.c-torture/execute/20031003-1.c b/gcc/testsuite/gcc.c-torture/execute/20031003-1.c
index b60711f..3337d33 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20031003-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20031003-1.c
@@ -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;
}