Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 65153 invoked from network); 5 Dec 2006 12:59:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2006 12:59:43 -0000 Received: (qmail 33742 invoked by uid 500); 5 Dec 2006 12:59:51 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 33714 invoked by uid 500); 5 Dec 2006 12:59:51 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 33705 invoked by uid 99); 5 Dec 2006 12:59:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Dec 2006 04:59:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Dec 2006 04:59:42 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 786B37142BF for ; Tue, 5 Dec 2006 04:59:22 -0800 (PST) Message-ID: <2863801.1165323562490.JavaMail.jira@brutus> Date: Tue, 5 Dec 2006 04:59:22 -0800 (PST) From: "Alexey Varlamov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-2396) [drlvm][jit] Jitrino fails to run SpecJBB2005 in -Xem:opt mode In-Reply-To: <6179007.1164986781098.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/HARMONY-2396?page=comments#action_12455618 ] Alexey Varlamov commented on HARMONY-2396: ------------------------------------------ I guess we want to add this case to regression tests, please consider creating a patch for it. > [drlvm][jit] Jitrino fails to run SpecJBB2005 in -Xem:opt mode > -------------------------------------------------------------- > > Key: HARMONY-2396 > URL: http://issues.apache.org/jira/browse/HARMONY-2396 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Mikhail Fursov > Assigned To: Alexey Varlamov > Attachments: tauedge.diff > > > SpecJBB2005 crashes in -Xem:opt mode. > After analysis of IR I prepared this minimized testcase to reproduce the problem: > public class Test { > public static void main(String[] args) { > foo3(new Test(), 10, new char[100]); > } > > int position; > static void foo3 (Test x, int i, char[] arr) { > int j=x.position; > if(j < i) { > System.arraycopy(arr, j, arr, i, 10); > } > } > } > The problem is in memopt: it produces code with tau opnds mixed with numerics at in the same insts: > The part of IR before memopt: > I42:cgt:i4 t3, t9 -) t22:int32 > I43:and t18, t22 -) t23:int32 > The part of IR after memopt: > I125:copy t55 -) t22:int32 > I43:and t18, t22 -) t23:int32 > Where t55 is > I118:tauedge() -) t55:tau > I propose replacing I125 copy inst with ldconst #1 for tauedge insts in HVN pass to solve the problem. -- 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