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 B4DC3C1E376; Wed, 14 Aug 2024 17:08:02 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org B4DC3C1E376 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1723644482; bh=E8eFTkRrn/8qRS2QZuVQIZ/OROQ6iU7KemuLifIUBKA=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=Khp6wXq4W1t/oUgCWDD92OCDt2AHVwYzf6PQlTZ6N5K3pBQ+638J+OeYwEsYk8MP9 OeuY40RhnLmPcgvb3iHyZYam1dLOmQAnJCi42b9P6c9RZKK/wg84D+yqYvpwuK7Ior /hng2v2eSmXt0OJxLw+rTFDpaPWXM1IfvwFgS8Jw= Received: from smtp45.i.mail.ru (smtp45.i.mail.ru [95.163.41.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id F2F02C4F430 for ; Wed, 14 Aug 2024 16:57:12 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org F2F02C4F430 Received: by smtp45.i.mail.ru with esmtpa (envelope-from ) id 1seEUy-00000003nAF-0186; Wed, 14 Aug 2024 16:57:12 +0300 To: Maxim Kokryashkin , Sergey Bronnikov Date: Wed, 14 Aug 2024 16:56:04 +0300 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9D7B6E71A78C20FB96027B7B0C560CCBD39F3291DE0A43464182A05F53808504017515D87C837BABBA6D5EE0DB6E1EC8DB06379B72EF64CF5129B12038A8E527CBC84B745497C87E9 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE795530B80AF2ADB7BEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637AE01C1A20EF0A1348638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D89543A341001A7A0E92FDB6FC48C14056B3F3661483885BB9CC7F00164DA146DAFE8445B8C89999728AA50765F79006372A3B24BF85B2E607389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC878444BBB7636F62AF6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA73AA81AA40904B5D9A18204E546F3947C223C850C94764309BA3038C0950A5D36C8A9BA7A39EFB766D91E3A1F190DE8FDBA3038C0950A5D36D5E8D9A59859A8B6AD617297322B34853AA81AA40904B5D99C9F4D5AE37F343AD1F44FA8B9022EA23BBE47FD9DD3FB595F5C1EE8F4F765FC2EE5AD8F952D28FBE2021AF6380DFAD18AA50765F7900637B8FA30D9455089A722CA9DD8327EE4930A3850AC1BE2E735D2457FAF19517CF2C4224003CC83647689D4C264860C145E X-C1DE0DAB: 0D63561A33F958A58212AF52F75092E55002B1117B3ED69631A719D81366BE057E0012C66AE17B00823CB91A9FED034534781492E4B8EEADA2D5570B22232E1EC79554A2A72441328621D336A7BC284946AD531847A6065A17B107DEF921CE79BDAD6C7F3747799A X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CF4E237FFE5848B7A60691D581BA394521721FCC51D505CA0165F89B65978ECD3D182FB9261F6240E8470327EB0AC8E6930D20A8F3D0C3ABF9E98BAB6BFF30A47871F87DFC8B9BA39DC226CC413062362A913E6812662D5F2A5EAB5682573093F7837F15F2B5E4A70B33F2C28C22F508233FCF178C6DD14203 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojnMg09N3zL/hEazelFdN+ig== X-Mailru-Sender: 520A125C2F17F0B1A9638AD358559B599DF935797973F447A6D5EE0DB6E1EC8DB06379B72EF64CF5B7CBEF92542CD7C88B0A2698F12F5C9EC77752E0C033A69E86920BD37369036789A8C6A0E60D2BB63A5DB60FBEB33A8A0DA7A0AF5A3A8387 X-Mras: Ok Subject: [Tarantool-patches] [PATCH luajit 22/36] test: enable LuaJIT test 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 Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" This patch moves the aforementioned test from the to the directory, includes it in , and names the subtests. Part of tarantool/tarantool#9398 --- .../{misc/phi_conv.lua => trace/phi/conv.lua} | 35 ++++++++++--------- test/LuaJIT-tests/trace/phi/index | 1 + 2 files changed, 20 insertions(+), 16 deletions(-) rename test/LuaJIT-tests/{misc/phi_conv.lua => trace/phi/conv.lua} (67%) diff --git a/test/LuaJIT-tests/misc/phi_conv.lua b/test/LuaJIT-tests/trace/phi/conv.lua similarity index 67% rename from test/LuaJIT-tests/misc/phi_conv.lua rename to test/LuaJIT-tests/trace/phi/conv.lua index 8d7bea5f..7f46d445 100644 --- a/test/LuaJIT-tests/misc/phi_conv.lua +++ b/test/LuaJIT-tests/trace/phi/conv.lua @@ -1,18 +1,5 @@ - local bit = require("bit") -local Rm = {} -for i=0,16 do Rm[i] = 0 end - -for k=1,10 do - local seed = 1 - for i=16,0,-1 do - seed = bit.band(seed*9069, 0x7fffffff) - Rm[i] = seed - end - assert(seed == 1952688301) -end - local retindex = 0 local retdata = { 3, 1, 1, 1, 0, 3, 1, 0, 0, 2, 0, 2, 0, 0, 3, 1, 1, 1, 1 } @@ -42,12 +29,28 @@ local function decodeCode() end local function test() - for i = 1, 6 do + for _ = 1, 6 do decodeCode() end end -if jit and jit.status and jit.status() then jit.opt.start("hotloop=1") end +do --- PHI for CONV num.int before ASTORE. + local Rm = {} + for i = 0, 16 do Rm[i] = 0 end -test() + for _ = 1,10 do + local seed = 1 + for i = 16, 0, -1 do + seed = bit.band(seed*9069, 0x7fffffff) + Rm[i] = seed + end + assert(seed == 1952688301) + end +end + +do --- PHI for CONV num.int of lookup. + jit.opt.start("hotloop=1") + test() + jit.opt.start("hotloop=56") +end diff --git a/test/LuaJIT-tests/trace/phi/index b/test/LuaJIT-tests/trace/phi/index index 74a07333..a72d37a0 100644 --- a/test/LuaJIT-tests/trace/phi/index +++ b/test/LuaJIT-tests/trace/phi/index @@ -1,3 +1,4 @@ copyspill.lua +conv.lua ref.lua rotate.lua -- 2.45.2