harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Fursov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-3655) [drlvm]All JITs and interpreter perform incorrect floating point division when dividend is -0.0
Date Sun, 15 Apr 2007 14:01:15 GMT
[drlvm]All JITs and interpreter perform incorrect floating point division when dividend is
-0.0
-----------------------------------------------------------------------------------------------

                 Key: HARMONY-3655
                 URL: https://issues.apache.org/jira/browse/HARMONY-3655
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Mikhail Fursov


For the test below:
public class Hello {
    static float a=0f, b=-1f, c=1f, d=-0f;
    public static void main(String[] args) {
        float res;

        res = ((a * b) % c);     
        System.out.println("res="+res);   
        
        res = d % c;
        System.out.println("res="+res);
    }
}


The same problem we have for 'double' type

RI output is:
res=-0.0
res=-0.0

When JET/OPT/Interpreter print:
res=0.0
res=0.0

I think that the problem is with VM helper.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message