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-3691) [drlvm][jit][opt] branch-translator handles operands with DefScope_SemiTemporary incorrectly
Date Wed, 18 Apr 2007 08:54:15 GMT
[drlvm][jit][opt] branch-translator handles operands with DefScope_SemiTemporary incorrectly
--------------------------------------------------------------------------------------------

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


While working on HARMONY-3652 I found that BTR pass handles DefScope_SemiTemporary incorrectly.
Here is a test to reproduce:

public class Test {
    public static void main( String argv[] ) {
        System.out.println(foo());
    }

    static int foo() {
        int a  = 10;
        boolean b = false;
        if ( (a > 10 ? 20 : 30) == 30 ) {
            b = true;
        }

        if (!b) {
            return 40;
        }
        return 50;
    }
}


RI and JET print '50' and -Xem:opt  prints '40' here.
I'm going to fix this bug today.


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