diff options
author | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-20 12:45:19 +0000 |
---|---|---|
committer | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-20 12:45:19 +0000 |
commit | 2b9f2e4688aa7f44042aee897b98f56beb74d3dc (patch) | |
tree | bde1e339e8db8605043cf54be9ec6f30c663adf0 /libjava/testsuite | |
parent | 243f24c5b968096871674ab2d4131ca87da947af (diff) | |
download | gcc-2b9f2e4688aa7f44042aee897b98f56beb74d3dc.tar.gz |
2007-03-19 Andrew Haley <aph@redhat.com>
PR tree-optimization/31264
* tree-vrp.c (register_edge_assert_for_1): Don't look though
VIEW_CONVERT_EXPRs.
2007-03-20 Andrew Haley <aph@redhat.com>
* testsuite/libjava.lang/PR31264.java: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123085 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite')
-rw-r--r-- | libjava/testsuite/libjava.lang/PR31264.jar | bin | 0 -> 844 bytes | |||
-rw-r--r-- | libjava/testsuite/libjava.lang/PR31264.java | 28 | ||||
-rw-r--r-- | libjava/testsuite/libjava.lang/PR31264.out | 0 |
3 files changed, 28 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.lang/PR31264.jar b/libjava/testsuite/libjava.lang/PR31264.jar Binary files differnew file mode 100644 index 00000000000..26731c83b89 --- /dev/null +++ b/libjava/testsuite/libjava.lang/PR31264.jar diff --git a/libjava/testsuite/libjava.lang/PR31264.java b/libjava/testsuite/libjava.lang/PR31264.java new file mode 100644 index 00000000000..5c0e85f010e --- /dev/null +++ b/libjava/testsuite/libjava.lang/PR31264.java @@ -0,0 +1,28 @@ +/* + * Javolution - Java(TM) Solution for Real-Time and Embedded Systems + * Copyright (C) 2006 - Javolution (http://javolution.org/) + * All rights reserved. + * + * Permission to use, copy, modify, and distribute this software is + * freely granted, provided that this notice is preserved. + */ + +public final class PR31264 +{ + public static long fubar(double d, int n) + { + long bits = Double.doubleToRawLongBits(d); + int exp = ((int)(bits >> 52)) & 0x7FF; + long m = bits & 0x000fffffffffffffL; + if (exp == 0) + { + if (m == 0) return 0L; + return fubar(d * 18014398509481984L, n - 54); // 2^54 Exact. + } + return m; + } + + public static void main(String[] argv) + { + } +} diff --git a/libjava/testsuite/libjava.lang/PR31264.out b/libjava/testsuite/libjava.lang/PR31264.out new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/libjava/testsuite/libjava.lang/PR31264.out |