You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Gregory Shimansky (JIRA)" <ji...@apache.org> on 2007/05/17 16:29:17 UTC

[jira] Updated: (HARMONY-3655) [drlvm][helpers] All JITs and interpreter perform incorrect floating point division when dividend is -0.0

     [ https://issues.apache.org/jira/browse/HARMONY-3655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky updated HARMONY-3655:
---------------------------------------

    Summary: [drlvm][helpers] All JITs and interpreter perform incorrect floating point division when dividend is -0.0  (was: [drlvm]All JITs and interpreter perform incorrect floating point division when dividend is -0.0)

> [drlvm][helpers] 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.