From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 354FD46A527; Mon, 22 May 2023 12:18:13 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 354FD46A527 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1684747093; bh=d/HQm2I5KSRguAAQR0A4SlfJn/CTxtZak9mGSg6irqE=; h=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=jGtIZLfpKNDnzoy9cCNR+2eKQ4gPO7xOU9GyCl9snkY+JUVjrfLXhlDHoBkvmXAM/ xklNicioTSW1X+0YZ79RQUq8eDlEPq/SRuRrsR3J1rNVCNkunf9NTRpPXp8DeISyAz MXmwo6Y74tPvjc+DHLOovWPFagwC+vhWtmNmJQPY= Received: from smtpng1.i.mail.ru (smtpng1.i.mail.ru [94.100.181.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 1DB6E46865E for ; Mon, 22 May 2023 12:18:12 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 1DB6E46865E Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1q11gB-0003zC-Ar; Mon, 22 May 2023 12:18:11 +0300 Date: Mon, 22 May 2023 12:14:06 +0300 To: Sergey Bronnikov , tarantool-patches@dev.tarantool.org Message-ID: References: <44354d682d3cabf5a3ab1a268f900d7e6f981020.1683720396.git.skaplun@tarantool.org> <4959c9e3-e0e3-7d26-1a7f-836849cecf4c@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD921E8753A900160F15936E282AFCA66009AC39592F2D75037182A05F5380850405B976025F3238ACC5FF830CF49EFEEE00D4B66BCB4B04A7E87B0010C223FC4C8 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE711269A7C2F827F16EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006379C6642364E0E74208638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D81902C42C4E2DABB4729028DA55DD3A4D117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCCD50B4D329AF8BB7A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F446042972877693876707352091ADC097FE2C3A0828451B159A507268D2E47CDBA5A96583BA9C0B312567BB231DD303D21008E29813377AFFFEAFD269A417C69337E82CC2E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B6A45692FFBBD75A6A089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-C1DE0DAB: 0D63561A33F958A57262A89DA6B544280AB54CB462D34CF5BD42B4EBF366FC9AF87CCE6106E1FC07E67D4AC08A07B9B06A1CB4668A9CA5FACB5012B2E24CD356 X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CF377CCFF95DF906A274B9247AED818F5E5042E80C4FCB6459AED5009D1254C85B4C7498080C0F87FCD5191E2618EE498CB77B48BC2F9FAE7C7FEB949463CE4C1EC897C70B1EFF344F X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojsZq9uZIzxfZ5i5isEzfclQ== X-DA7885C5: 99CD692298511705AF82B53959A51A31CAC9861EB27FEB392EE625DB773EFE2D262E2D401490A4A0DB037EFA58388B346E8BC1A9835FDE71 X-Mailru-Sender: 689FA8AB762F73930F533AC2B33E986BAF70BCEA5DDFD2D465CCE5936061A9EB0FBE9A32752B8C9C2AA642CC12EC09F1FB559BB5D741EB962F61BD320559CF1EFD657A8799238ED55FEEDEB644C299C0ED14614B50AE0675 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit 1/2] test: add utility for parsing `jit.dump` X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Kaplun via Tarantool-patches Reply-To: Sergey Kaplun Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Hi, again! I'm brain dead today: totaly forgot about CHECKHOOK, DUALNUM exotic builds... I've changed the test to the following: =================================================================== local tap = require('tap') local test = tap.test('unit-jit-parse'):skipcond({ ['Test requires JIT enabled'] = not jit.status(), ['Disabled on *BSD due to #4819'] = jit.os == 'BSD', }) local jparse = require('utils.jit_parse') local expected_irs = { -- The different exotic builds may add different IR -- instructions, so just check some IR-s existence. -- `%d` is a workaround for GC64 | non-GC64 stack slot number. 'int SLOAD #%d', 'int ADD 0001 %+1', } local N_TESTS = #expected_irs jit.opt.start('hotloop=1') test:plan(N_TESTS) -- Reset traces. jit.flush() jparse.start('i') -- Loop to compile: for _ = 1, 3 do end local traces = jparse.finish() local loop_trace = traces[1] for irnum = 1, N_TESTS do local ir_pattern = expected_irs[irnum] local irref = loop_trace:has_ir(ir_pattern) test:ok(irref, 'find IR refernce by pattern: ' .. ir_pattern) end os.exit(test:check() and 0 or 1) =================================================================== -- Best regards, Sergey Kaplun