harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vera Petrashkova (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2679) [drlvm][jit][jet] Combination of ldc2_w and dup2 instructions works incorrectly
Date Thu, 14 Dec 2006 09:33:21 GMT
[drlvm][jit][jet] Combination of ldc2_w and dup2 instructions works incorrectly
-------------------------------------------------------------------------------

                 Key: HARMONY-2679
                 URL: http://issues.apache.org/jira/browse/HARMONY-2679
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: Windows, Linux
            Reporter: Vera Petrashkova
            Priority: Minor
         Attachments: dupTest.zip

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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message