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 8AC74DE0F5B; Tue, 3 Dec 2024 14:23:44 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 8AC74DE0F5B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1733225024; bh=y0o8kkamD9Rt1SvZTDcBc+vwEeDUZaEFjOoCaMd9szY=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=RaD4VeQTv1tqi36Y2le4+HOhwj0oGBtv6f7V6GS1ezN8inCKU1eaHIGHVlR9mBs64 IEqeXkdgvYDnNXP/EreEXj7VMbS/esgVRICmzHl8Pmqe/+hPxQNMXotN6ElJaOpn5J rpDLVoXmViDTEKK2AjNhqTLXwjkrBIG/4ziJemdk= Received: from send263.i.mail.ru (send263.i.mail.ru [95.163.59.102]) (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 C9F92DE0F4D for ; Tue, 3 Dec 2024 14:23:43 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org C9F92DE0F4D Received: by exim-smtp-5b986d8c48-pnjzs with esmtpa (envelope-from ) id 1tIR0I-000000003be-3LY0; Tue, 03 Dec 2024 14:23:43 +0300 To: Maxim Kokryashkin , Sergey Bronnikov Date: Tue, 3 Dec 2024 14:22:41 +0300 Message-ID: <20241203112241.6713-1-skaplun@tarantool.org> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9659B52000766BFD1F5DDBE81D74C23947B3B518034A17941182A05F5380850408FBE96A11EAF97313DE06ABAFEAF67055BDDCF1B06E5A1317C64DB76BE0A5EFB4372A3FD2321C94C X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7A33E1178EA603666EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637F78F3D6E0D6791938638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8E2C275A27526597DC817D5C5B9C91BB31F5895ECF69A7D40CC7F00164DA146DAFE8445B8C89999728AA50765F7900637CAEE156C82D3D7D9389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC8989FD0BDF65E50FBF6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA7E827F84554CEF5019E625A9149C048EE33AC447995A7AD182BEBFE083D3B9BA73A03B725D353964B0B7D0EA88DDEDAC722CA9DD8327EE4930A3850AC1BE2E735156CCFE7AF13BCA4B5C8C57E37DE458BEDA766A37F9254B7 X-C1DE0DAB: 0D63561A33F958A5649A0ED314919F155002B1117B3ED69686350F7716FAB7F44869453249F34FA4823CB91A9FED034534781492E4B8EEAD3C056C6FCE5AFF8EC79554A2A72441328621D336A7BC284946AD531847A6065A535571D14F44ED41 X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF77DD89D51EBB7742D3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CF9B4F539A6CC0A8479F402EE896025568A83DC732969671BBB9E82F8334688729F02FE508BB13AAFB7364E7F40BF8CCAEA2FE88F4EC080062FCB37744C8F89101FB8557B2C210114DC226CC413062362A913E6812662D5F2A5EAB5682573093F7837F15F2B5E4A70B33F2C28C22F508233FCF178C6DD14203 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXgmpkJ02GLvP0ckiv6cegvX X-DA7885C5: 3F0E4BDAE1ACBB3BF255D290C0D534F94ED3F75D564E2EDD7A9C97A3B78242A8E436D527F8B986075B1A4C17EAA7BC4BEF2421ABFA55128DAF83EF9164C44C7E X-Mailru-Sender: 689FA8AB762F739381B31377CF4CA219E0904017379BC9917E8D3618AAD2C04066BFF419CC9F3763E49D44BB4BD9522A059A1ED8796F048DB274557F927329BE89D5A3BC2B10C37545BD1C3CC395C826B4A721A3011E896F X-Mras: Ok Subject: [Tarantool-patches] [PATCH luajit] test: skip test for table bump 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" If the `foo()` function itself starts to be recorded on the very first call, it leads to the changing of TNEW bytecode when table bump optimization is enabled. This patch skips the test for this type of build. --- Branch: https://github.com/tarantool/luajit/tree/skaplun/fix-luajit-tests-tablebump test/LuaJIT-tests/CMakeLists.txt | 8 ++++++++ test/LuaJIT-tests/lib/string/dump.lua | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/test/LuaJIT-tests/CMakeLists.txt b/test/LuaJIT-tests/CMakeLists.txt index 019762e0..d29bcb6e 100644 --- a/test/LuaJIT-tests/CMakeLists.txt +++ b/test/LuaJIT-tests/CMakeLists.txt @@ -62,6 +62,14 @@ if(CMAKE_C_FLAGS MATCHES "-march=skylake-avx512") list(APPEND LUAJIT_TEST_TAGS_EXTRA +avx512) endif() +if(LUAJIT_ENABLE_TABLE_BUMP) + # Test verifies that the bytecode is unchanged + # for the prototype with the recorded trace. Table bump + # optimization changes the TNEW/TDUP bytecodes, so skip the test + # in that case. + list(APPEND LUAJIT_TEST_TAGS_EXTRA +table_bump) +endif() + set(TEST_SUITE_NAME "LuaJIT-tests") # XXX: The call produces both test and target diff --git a/test/LuaJIT-tests/lib/string/dump.lua b/test/LuaJIT-tests/lib/string/dump.lua index 216c6eb8..9c29ac50 100644 --- a/test/LuaJIT-tests/lib/string/dump.lua +++ b/test/LuaJIT-tests/lib/string/dump.lua @@ -1,6 +1,6 @@ local loadstring = loadstring or load -do --- Must unpatch modified bytecode with ILOOP/JLOOP etc. +do --- Must unpatch modified bytecode with ILOOP/JLOOP etc. -table_bump local function foo() local t = {} for i=1,100 do t[i] = i end -- 2.47.0