aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2003-10-14 13:31:27 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2003-10-14 13:31:27 +0000
commite157d7777ae24181313641d4c2e7ef804a145b51 (patch)
treeb14bbf36aa7f1f6446fd2d51d3bd78a37e34653f /gcc/testsuite/gcc.c-torture
parent91de08c377a3f7fbabbedd7ccf8aca5da391461d (diff)
downloadgcc-e157d7777ae24181313641d4c2e7ef804a145b51.zip
gcc-e157d7777ae24181313641d4c2e7ef804a145b51.tar.gz
gcc-e157d7777ae24181313641d4c2e7ef804a145b51.tar.bz2
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
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20031003-1.c19
1 files changed, 0 insertions, 19 deletions
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;
}