From harmony-dev-return-17375-apmail-incubator-harmony-dev-archive=incubator.apache.org@incubator.apache.org Fri Oct 27 10:40:21 2006 Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 61117 invoked from network); 27 Oct 2006 10:40:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2006 10:40:19 -0000 Received: (qmail 49209 invoked by uid 500); 27 Oct 2006 10:40:27 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 49162 invoked by uid 500); 27 Oct 2006 10:40:27 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 49153 invoked by uid 99); 27 Oct 2006 10:40:27 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 03:40:27 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of kollegov.ivan@gmail.com designates 64.233.182.189 as permitted sender) Received: from [64.233.182.189] (HELO nf-out-0910.google.com) (64.233.182.189) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 03:40:15 -0700 Received: by nf-out-0910.google.com with SMTP id m18so1256135nfc for ; Fri, 27 Oct 2006 03:39:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CR7Ze0N7SIL/E81RgtMGoAtikwFwx0wvCXjw8WW/diIp3eiS3de0hQYzD//no0UU/RH3qE548MbwyPs0tis8SzOqwn3x2wUVUAJRLSrZfG7sIusSAZ6IoOm9Bai5otVPBjEsxorqbEKjMjEnNkpMD+FifPYUyhgJMBhZSjgmb6w= Received: by 10.82.107.15 with SMTP id f15mr1290889buc; Fri, 27 Oct 2006 03:39:53 -0700 (PDT) Received: by 10.82.139.11 with HTTP; Fri, 27 Oct 2006 03:39:52 -0700 (PDT) Message-ID: Date: Fri, 27 Oct 2006 17:39:52 +0700 From: "Ivan Kollegov" To: harmony-dev@incubator.apache.org Subject: Re: [drlvm][jit] Internal testing framework for Jitrino.OPT compiler In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <469bff730609220335g4969730aydc7a2042a7de94ec@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi JIT developers. I've wrote 4 templates and about 20 tests to test Jitrino's internal algorithms. I put them all into JIRA-1586 Also I've founded a problem with testing simplifier.cpp (test testSimplifyIf). The problem was in FlowGraph::foldBranch(ControlFlowGraph& fg, Node* block, BranchInst* br, bool isTaken) { assert(br == block->getLastInst()); assert(block->getOutDegree() == 2); fg.removeEdge(block->getOutEdge(isTaken ? Edge::Kind_False : Edge::Kind_True)); br->unlink(); } The variable "block" can be null. This problem can be fixed with patch in JIRA-1986 Also, I had problems with race condition with initializing of static section in TestRegistry* TestRegistry::getInstance(){ Could you check the changes?