[kaffe] Bug [CVS]: 1f == 0.0

Dalibor Topic robilad at yahoo.com
Wed Apr 2 07:48:01 PST 2003


Hi Benja, hello Tim,

I've looked at the bytecodes of the test case, and
adapted it a bit. I belive the error occurs in
fload_x/fstore_x opcodes. f_const, as well as d_const,
dload_x and dstore_x appear to work as expected.

I've attached an updated test case, a bytecode
dissasembly, and the class file.

Tim, could you take a look at what might be causing
this?

cheers,
dalibor topic

--- Benja Fallenstein <b.fallenstein at gmx.de> wrote:
> 
> Hi,
> 
> does any of you knowledgable people have time to
> look into this? 
> Currently this is where our project fails on Kaffe,
> and I'm not able to 
> work around it (and we would not only like to run on
> Free Software, but 
> are also obligued to release only versions that also
> run on a Free VM, 
> by Savannah.gnu.org policy).
> 
> I hope this doesn't sound pushy-- I really
> appreciate your efforts. Just 
> wanted to note this particular bug is important for
> us.
> 
> Thank you!
> - Benja
> 
> Benja Fallenstein wrote:
> > 
> > Hi all,
> > 
> > This code:
> > 
> >> public class Bug {
> >>     public static void main(String[] args) {
> >>     float f = 1.0f;
> >>     System.out.println("f = "+f);
> >>     }
> >> }
> > 
> > 
> > gives:
> > 
> >> benja at joy:/tmp$
> /home/benja/j2sdk1.4.1_01/bin/java -cp . Bug
> >> f = 1.0
> >> benja at joy:/tmp$ /usr/local/kaffe/bin/java -cp .
> Bug
> >> f = 0.0
> > 
> > 
> > My Kaffe version string is:
> > 
> >> Engine: Just-in-time v3   Version: 1.1.x-cvs  
> Java Version: 1.1
> > 
> > 
> > Oh joy!
> > 
> > Thanks,
> > - Benja
> > 
> > 
> > _______________________________________________
> > kaffe mailing list
> > kaffe at kaffe.org
> > http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
> > 
> > 
> 
> 
> 
> _______________________________________________
> kaffe mailing list
> kaffe at kaffe.org
> http://kaffe.org/cgi-bin/mailman/listinfo/kaffe



__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bug.java
Type: text/x-java
Size: 440 bytes
Desc: Bug.java
Url : http://kaffe.org/pipermail/kaffe/attachments/20030402/431575fb/attachment-0003.java 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bug.class
Type: application/x-java-vm
Size: 455 bytes
Desc: Bug.class
Url : http://kaffe.org/pipermail/kaffe/attachments/20030402/431575fb/attachment-0003.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug.dis
Type: application/octet-stream
Size: 1286 bytes
Desc: bug.dis
Url : http://kaffe.org/pipermail/kaffe/attachments/20030402/431575fb/attachment-0003.obj 


More information about the kaffe mailing list