From e157d7777ae24181313641d4c2e7ef804a145b51 Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Tue, 14 Oct 2003 13:31:27 +0000 Subject: 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/gcc.c-torture/execute/20031003-1.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'gcc/testsuite/gcc.c-torture') 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; } -- cgit v1.1