This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Gij regression?
- To: java at gcc dot gnu dot org
- Subject: Gij regression?
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Sat, 21 Jul 2001 19:09:47 -0700
- Reply-to: apbianco at cygnus dot com
Out of a fresh build and on the test case below, gij outputs:
4611924758479503360 4611924758479503360 4611924758479503360 4611924758479503360 234
whereas the correct output is:
81985529216486895 -81985529216486896 -1110518062304271993 -8608480567731124088 234
(as delivered by compiling to native, to bytecode then native and to
bytecode then executed with Sun's java.)
Can anyone reproduce this?
./A
class test_long {
public static void main (String[] arg)
{
long a, b, c, d, e;
e = 234L;
d = 0x8888888888888888L;
a = 0x0123456789ABCDEFL;
b = 0xFEDCBA9876543210L;
c = 0xF096A5B4C3B2E187L;
System.out.println (a+" "+b+" "+c+" "+d+" "+e);
}
}