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 E5A7614AC7D; Mon, 12 Dec 2022 12:57:10 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org E5A7614AC7D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1670839031; bh=Ak6IU4X1avPZM1H5EnWzmBJLgICp+PW1z6sxOUFGRy8=; h=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=aH7ilNq3a5aJTTP62oDsVjBYeYRMwI+yf/u+nnBx+kUrwhkSkyKLmYkv6GMv8irdO S1VS++a8h2iLygnjD+Jzosewokk2fVviuuWHqFIGwMkeHz+v/2vTjED+uvsSTOLgL9 bp7UTzPGpO5doFiYa13M+9vUbe2cDa+v4IQTJXCc= 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 889F614AC7D for ; Mon, 12 Dec 2022 12:56:49 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 889F614AC7D Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1p4fYG-0003IJ-O9; Mon, 12 Dec 2022 12:56:49 +0300 Date: Mon, 12 Dec 2022 12:42:52 +0300 To: Maksim Kokryashkin Message-ID: References: <20220909121531.87545-1-max.kokryashkin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220909121531.87545-1-max.kokryashkin@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD908190A22B884CF14738915A035816C578D9B2BBAF89147E4182A05F538085040446F960E8AEC971AD0C032887E40B398DD426BFECDE01DC4FDF3279743FB47C2 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE73B44982FA5E78411EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063781BF90BB6B3E56078638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8B56300AD9BC9A205F9C3B0FF9023FF8E117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC3733B5EC72352B9FA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F4460429728776938767073520599709FD55CB46A6F6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA7E827F84554CEF5019E625A9149C048EE9ECD01F8117BC8BEE2021AF6380DFAD18AA50765F790063735872C767BF85DA227C277FBC8AE2E8BC6A536F79815AD9275ECD9A6C639B01B4E70A05D1297E1BBCB5012B2E24CD356 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34AB80C45F81B80D63E0006960F55FE84BE6A2CACD9EB248BCC04106437F178FB60017CB552AF27C971D7E09C32AA3244CE0D5B9FB624FF0B15ABD1DE41EA6DBE45595C85A795C7BAE927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojCvDLVb3lQJgN+6PunRZq4w== X-DA7885C5: 75B706511235C08565CE8E4EC904A509273C498DFA8A4FA7C71F2DE7C151A1DE262E2D401490A4A0DB037EFA58388B346E8BC1A9835FDE71 X-Mailru-Sender: 689FA8AB762F73933AF1F914F131DBF5B618A2E3FEF761846E2D229A6C65B209A7C8D0F45F857DBFE9F1EFEE2F478337FB559BB5D741EB964C8C2C849690F8E70A04DAD6CC59E3365FEEDEB644C299C0ED14614B50AE0675 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit] Fix narrowing of unary minus. 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: Igor Munkin via Tarantool-patches Reply-To: Igor Munkin Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Max, I've checked the patches into all long-term branches in tarantool/luajit and bumped a new version in master, 2.10 and 1.10. On 09.09.22, Maksim Kokryashkin wrote: > From: Mike Pall > > With DUALNUM mode disabled, unary minus narrowing can produce > inconsistent results on zeros, returning both -0 and 0 on the > same chunk of code. > > This patch fixes the inconsistency by adding checks for zeros. > > Part of tarantool/tarantool#7230 > Resolves tarantool/tarantool#6976 > --- > Issue: https://github.com/tarantool/tarantool/issues/6976 > Branch: https://github.com/tarantool/luajit/tree/fckxorg/gh-6976-narrowing-of-unary-minus > PR: https://github.com/tarantool/tarantool/pull/7662 > > src/lj_opt_narrow.c | 9 +++-- > .../gh-6976-narrowing-of-unary-minus.test.lua | 34 +++++++++++++++++++ > 2 files changed, 41 insertions(+), 2 deletions(-) > create mode 100644 test/tarantool-tests/gh-6976-narrowing-of-unary-minus.test.lua > > -- > 2.32.1 (Apple Git-133) > -- Best regards, IM