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 <[EMAIL PROTECTED]> 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:
> >
> >> [EMAIL PROTECTED]:/tmp$
> /home/benja/j2sdk1.4.1_01/bin/java -cp . Bug
> >> f = 1.0
> >> [EMAIL PROTECTED]:/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
> > [EMAIL PROTECTED]
> > http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
> >
> >
>
>
>
> _______________________________________________
> kaffe mailing list
> [EMAIL PROTECTED]
> http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.compublic class Bug {
public static void main(String[] args) {
//use f_const : works
System.out.println(1.0f);
// use fstore_1 fload_1 : fails
float f = 1.0f;
System.out.println(f);
// use fstore_1, fload_2 : fails
float f2 = 1.0f;
System.out.println(f2);
// use d_const : works
System.out.println(1.0d);
// use d_store, d_load : works
double d = 1.0d;
System.out.println(d);
}
}
Bug.class
Description: Bug.class
bug.dis
Description: bug.dis
