From e157d7777ae24181313641d4c2e7ef804a145b51 Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Tue, 14 Oct 2003 13:31:27 +0000 Subject: [PATCH] re PR rtl-optimization/9325 (wrong conversion of constants: (int)(float)(int) (INT_MAX)) 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 | 7 +++++++ .../gcc.c-torture/execute/20031003-1.c | 19 ------------------- 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5cdd008b57f..dd5b191b213 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2003-10-14 Roger Sayle + + 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 * 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 b60711f732b..3337d3329ad 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; }