harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Shimansky (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-3655) [drlvm][helpers] All JITs and interpreter perform incorrect floating point division when dividend is -0.0
Date Thu, 17 May 2007 14:29:17 GMT

     [ 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.


Mime
View raw message