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 9B2D599FA32; Wed, 24 Jan 2024 17:43:45 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 9B2D599FA32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1706107425; bh=0wvQoprW9SgoiiUJ0eEM9wTGXHbX56xsnPOqeQXZFbI=; h=Date:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=rehQ/a3n3jc58s5WGx/31POXinnN1kk1sH2AD2bVqPFhpGNHaq1opCoOoz9cAERu8 HHHTHq1ng/C6ynyrdPlFtcJAMpSxJg5ofKX1tWvUd+nE7neTS69g/Xp5Xbfp57H/pq e2ZvCzFKEulXwh80ybP9ATM1YA5Io5v3miZzM/j8= Received: from smtp38.i.mail.ru (smtp38.i.mail.ru [95.163.41.79]) (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 A786532B7C1 for ; Wed, 24 Jan 2024 17:43:44 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org A786532B7C1 Received: by smtp38.i.mail.ru with esmtpa (envelope-from ) id 1rSeTf-00FTI6-2L; Wed, 24 Jan 2024 17:43:44 +0300 Message-ID: <6d42d1cb-99c5-4569-ad33-dcd92e3396a0@tarantool.org> Date: Wed, 24 Jan 2024 17:43:43 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Sergey Kaplun , Maxim Kokryashkin Cc: tarantool-patches@dev.tarantool.org References: <5d4ac76f2273df84a6cfc329e75af0a2ed7b007c.1705661401.git.skaplun@tarantool.org> In-Reply-To: <5d4ac76f2273df84a6cfc329e75af0a2ed7b007c.1705661401.git.skaplun@tarantool.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: EEAE043A70213CC8 X-77F55803: 4F1203BC0FB41BD96A58C36AA2E99649E4D9784A2E51F17D0BDB9DDD3E04C36B182A05F538085040FA8E57B2825E77649705F68B33C232BB226954AE4131819DCE65AC90E2462D3A X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7AB524098FB2F2222EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637B05885A782BE20C5EA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38B73AB1701401CD8713C91794C1E2B1778BCB2292192CC48F1CC7F00164DA146DAFE8445B8C89999728AA50765F7900637F924B32C592EA89F389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC82FFDA4F57982C5F4F6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA73AA81AA40904B5D9A18204E546F3947C4CB6874B0BCFF0B8302FCEF25BFAB3454AD6D5ED66289B523666184CF4C3C14F6136E347CC761E07725E5C173C3A84C3642883364D384F09BA3038C0950A5D36B5C8C57E37DE458B330BD67F2E7D9AF16D1867E19FE14079C09775C1D3CA48CFE478A468B35FE7671DD303D21008E298D5E8D9A59859A8B6B372FE9A2E580EFC725E5C173C3A84C36DD0439D4B94EFE535872C767BF85DA2F004C90652538430E4A6367B16DE6309 X-C1DE0DAB: 0D63561A33F958A51791E6B3F61045137930802D0D57924ABA6F1F98AB9CFFB8F87CCE6106E1FC07E67D4AC08A07B9B09E541A154B51D14BCB5012B2E24CD356 X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CFB7721EBCEC4598DFB4CDCD321636D6FEE418090E3C3C316FA8D91D8921A63227698455FC0CD9C1824BEAD515961AA0A75F3E13A01DAE47CCF82C5EB3C65ABACFE48CAC7CA610320002C26D483E81D6BE0DBAE6F56676BC7117BB6831D7356A2DEC5B5AD62611EEC62B5AFB4261A09AF0 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojjPo90oGNxwLM7JxmmQ6pWg== X-Mailru-Sender: 11C2EC085EDE56FAC07928AF2646A769F8116502D5BE80049705F68B33C232BB825871508D9F3970EBA65886582A37BD66FEC6BF5C9C28D98A98C1125256619760D574B6FC815AB872D6B4FCE48DF648AE208404248635DF X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit 12/25] test: enable in LuaJIT-tests 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 Bronnikov via Tarantool-patches Reply-To: Sergey Bronnikov Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Hi, Sergey! thanks for the patch On 1/19/24 14:32, Sergey Kaplun wrote: > > -do > +do --- call_ij I would rename testcase. Using test function as a name is confusing. Here and below and in other patches too. > local x = 0 > for i=1,100 do > x = x + lib.call_ij(100+i, i*0x300000002LL) > @@ -69,7 +73,7 @@ do > assert(x == 0x3b2e0000623eLL) > end > > -do > +do --- call_10d > local x > for i=1,100 do > x = lib.call_10d(-42.5, 17.125, 12345.5, 9987, -100.625, 11, 51, 0x12345678, 338, -78901234.75) > @@ -77,15 +81,17 @@ do > assert(x == -42.5+17.125+12345.5+9987-100.625+11+51+0x12345678+338-78901234.75) > end > > -do > - local x > - for i=1,100 do > - x = lib.call_10f(-42.5, 17.125, 12345.5, 9987, -100.625, 11, 51, 0x123456, 338, -789012.75) > +do --- call_10f > + if not (jit.os == "OSX" and jit.arch == "arm64") then -- NYI > + local x > + for i=1,100 do > + x = lib.call_10f(-42.5, 17.125, 12345.5, 9987, -100.625, 11, 51, 0x123456, 338, -789012.75) > + end > + assert(x == -42.5+17.125+12345.5+9987-100.625+11+51+0x123456+338-789012.75) > end > - assert(x == -42.5+17.125+12345.5+9987-100.625+11+51+0x123456+338-789012.75) > end > > -do > +do --- call_b > local x > for i=-100,100 do > if not lib.call_b(i) then x = i end > @@ -100,14 +106,14 @@ do > assert(x == 90) > end > > -do > +do --- tail call_b > local function tail(x) > return lib.call_b(x) > end > for i=1,100 do local a,b,c = tail(1), tail(1), tail(1) end > end > > -do > +do --- call i8[_i] u8[_i] i16[_i] u16[_i] > local x = 0 > for i=0x01010080,0x010100ff do x = x + lib.call_i_i8(i) end > assert(x == -8128) > @@ -135,7 +141,7 @@ do > end > > -- target-specific > -if jit.arch == "x86" then > +do --- fastcall +x86 > for i=1,100 do assert(lib.fastcall_i(-42) == -41) end > for i=1,100 do assert(lib.fastcall_ii(-42, 17) == -42+17) end > for i=1,100 do assert(lib.fastcall_iii(-42, 17, 139) == -42+17+139) end > @@ -143,12 +149,12 @@ if jit.arch == "x86" then > for i=1,100 do assert(lib.fastcall_dd(12.5, -3.25) == 12.5-3.25) end > local x = lib.fastcall_ji > for i=1,100 do assert(x(0x123456789LL, -17) == 0x123456789LL-17) end > +end > > - if jit.os == "Windows" then > - for i=1,100 do assert(lib.stdcall_i(-42) == -41) end > - for i=1,100 do assert(lib.stdcall_ii(-42, 17) == -42+17) end > - for i=1,100 do assert(lib.stdcall_dd(12.5, -3.25) == 12.5-3.25) end > - for i=1,100 do assert(lib.stdcall_ff(12.5, -3.25) == 12.5-3.25) end > - end > +do --- stdcall +x86 +windows > + for i=1,100 do assert(lib.stdcall_i(-42) == -41) end > + for i=1,100 do assert(lib.stdcall_ii(-42, 17) == -42+17) end > + for i=1,100 do assert(lib.stdcall_dd(12.5, -3.25) == 12.5-3.25) end > + for i=1,100 do assert(lib.stdcall_ff(12.5, -3.25) == 12.5-3.25) end > end > > diff --git a/test/LuaJIT-tests/lib/ffi/index b/test/LuaJIT-tests/lib/ffi/index > index 0c1e5e66..d6e2b64a 100644 > --- a/test/LuaJIT-tests/lib/ffi/index > +++ b/test/LuaJIT-tests/lib/ffi/index > @@ -11,6 +11,7 @@ ffi_convert.lua > ffi_enum.lua > ffi_gcstep_recursive.lua > ffi_jit_arith.lua > +ffi_jit_call.lua > istype.lua > jit_array.lua > jit_complex.lua