harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2679) [drlvm][jit][jet] Combination of ldc2_w and dup2 instructions works incorrectly
Date Fri, 05 Oct 2007 05:39:50 GMT

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

Alexey Varlamov updated HARMONY-2679:
-------------------------------------

    Attachment: H2679.diff

> [drlvm][jit][jet] Combination of ldc2_w and dup2 instructions works incorrectly
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-2679
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2679
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows, Linux x86 (32 bit only)
>            Reporter: Vera Petrashkova
>            Assignee: Alexey Varlamov
>            Priority: Minor
>         Attachments: dupTest.zip, H2679.diff
>
>
> The following synthetic test shows incorrect behavior of  ldc2_w and dup2  Instructions
> on jitrino/jet:
> -------------dupTest.jj--------------------
> .class public dupTest
> .super java/lang/Object
> .method public static main([Ljava/lang/String;)V
>     .limit stack 44
>     .limit locals 22
>     ldc2_w 1.0
>     dup2
>     getstatic java/lang/System/err Ljava/io/PrintStream;
>     dup_x2
>     pop
>     invokevirtual java/io/PrintStream/println(D)V
>     getstatic java/lang/System/err Ljava/io/PrintStream;
>     dup_x2
>     pop
>     invokevirtual java/io/PrintStream/println(D)V
>     ldc2_w 1.0
>     ldc2_w 1.0
>     getstatic java/lang/System/err Ljava/io/PrintStream;
>     dup_x2
>     pop
>     invokevirtual java/io/PrintStream/println(D)V
>     getstatic java/lang/System/err Ljava/io/PrintStream;
>     dup_x2
>     pop
>     invokevirtual java/io/PrintStream/println(D)V
>     return
> .end method
> -------------------------
> To reproduce:
> - create dupTest class using jasmin.jar or use attached class file
>   java -jar jasmine.jar dupTest
> - run dupTest
> Output on Jitrino/JET:
> 1.0
> 5.304989477E-315
> 1.0
> 1.0
> Output on interpreter and Jitrino/OPT:
> 1.0
> 1.0
> 1.0
> 1.0

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