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 6C8E014E38D9; Mon, 25 Aug 2025 18:27:10 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 6C8E014E38D9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1756135630; bh=EUeHP0/Vmr1w8TqIHIaxwOTnFideVEV73i3rhnOyxWU=; 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=QkQHGUWXveXnrFiZLgi5FoKa7/gxkSwCA7LIPlm8EG5hSqfKAoq/r0147UexhSSKQ fXJYAcDxnc2q8+URONq8S5rHBJLdWSiH4huQd8qA/hhkFZyoU9y3bZah8qMzifqx4C y+hAL+6NX2g1NLcbJSuneMp5vyUVlUOfBJ/GBfwA= Received: from send243.i.mail.ru (send243.i.mail.ru [95.163.59.82]) (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 3ABC614E38D2 for ; Mon, 25 Aug 2025 18:26:56 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 3ABC614E38D2 Received: by exim-smtp-6944cbb85b-hmt2t with esmtpa (envelope-from ) id 1uqZ5z-000000005wo-1bYT; Mon, 25 Aug 2025 18:26:55 +0300 Content-Type: multipart/alternative; boundary="------------DguFOetFy8b2LTIhairM6qVA" Message-ID: <30822efc-c088-4ebc-acb8-9328511b666f@tarantool.org> Date: Mon, 25 Aug 2025 18:26:55 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Sergey Kaplun Cc: tarantool-patches@dev.tarantool.org References: In-Reply-To: X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9F7647FA5750105563BE9CC3ED445551871AAC22D6BA07F2C182A05F5380850409D6B4DD400CB7DBA3DE06ABAFEAF67058D9F9AFBDEC8330DCE9A42D256B6A255F1CEB82050DA3836 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7B9FBA884A7C9B8BAEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637FE9EFE935CD7C6AE8638F802B75D45FF914D58D5BE9E6BC1A93B80C6DEB9DEE97C6FB206A91F05B26D7F046466FF2E9B2E070BE324C7D3C4A07F0FB5DD514481F6B57BC7E64490618DEB871D839B73339E8FC8737B5C2249E5E764EB5D94DBD4CC7F00164DA146DAFE8445B8C89999729449624AB7ADAF37F6B57BC7E64490611E7FA7ABCAF51C92176DF2183F8FC7C0B27420F9988F54058941B15DA834481F9449624AB7ADAF37BA3038C0950A5D3613377AFFFEAFD269176DF2183F8FC7C093FFA1BBD54C76087B076A6E789B0E97A8DF7F3B2552694AD5FFEEA1DED7F25D49FD398EE364050F26055571C92BF10FE2071C6999E77799B3661434B16C20ACC84D3B47A649675FE827F84554CEF5019E625A9149C048EE9ECD01F8117BC8BEE2021AF6380DFAD18AA50765F790063735872C767BF85DA227C277FBC8AE2E8BB07C9E286C61B7F975ECD9A6C639B01B4E70A05D1297E1BBCB5012B2E24CD356 X-C1DE0DAB: 0D63561A33F958A5824261A191E1CF875002B1117B3ED6967642A5A901A20C60484B8D70797403F6823CB91A9FED034534781492E4B8EEAD21D4E6D365FE45D1BDAD6C7F3747799A X-C8649E89: 1C3962B70DF3F0ADBF74143AD284FC7177DD89D51EBB7742424CF958EAFF5D571004E42C50DC4CA955A7F0CF078B5EC49A30900B95165D34EE19B6E2433CA0931BFE75372C82A8C5D4CBDBB34E7A1E6BF8A3A927C6882C8EC833145928F0FED11D7E09C32AA3244C65749D0A7973658777DD89D51EBB774234F959ECB654DA70EA455F16B58544A2E30DDF7C44BCB90DA5AE236DF995FB59978A700BF655EAEEED6A17656DB59BCAD427812AF56FC65B X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu53w8ahmwBjZKM/YPHZyZHvz5uv+WouB9+ObcCpyrx6l7KImUglyhkEat/+ysWwi0gdhEs0JGjl6ggRWTy1haxBpVdbIX1nthFXMZebaIdHP2ghjoIc/363UZI6Kf1ptIMVXNcwk+fZooKwpA9NZfoPH8= X-Mailru-Sender: 811C44EDE0507D1F797560C68D020EBD79464AE9DBA5B8E704DE63E6493D4605D274190884B1849315B0CAEEEBC9EE9B645D15D82EE4B272BD6E4642A116CA93524AA66B5ACBE6721EF430B9A63E2A504198E0F3ECE9B5443453F38A29522196 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit 0/3] Generation of immediates and TBAR fusion 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" This is a multi-part message in MIME format. --------------DguFOetFy8b2LTIhairM6qVA Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, Sergey! LGTM patch series On 7/24/25 12:03, Sergey Kaplun wrote: > The first 2 patches are required to avoid conflicts with the last one > patch. The last patch fixes incorrect fusion of instructions across IR, > which leads to incorrect label target. > > Related issues: > *https://github.com/tarantool/tarantool/issues/11691 > *https://github.com/LuaJIT/LuaJIT/issues/1057 > > Mike Pall (3): > ARM64: Improve generation of immediates. > ARM64: More improvements to the generation of immediates. > ARM64: Prevent STP fusion for conditional code emitted by TBAR. > > src/lj_asm.c | 3 + > src/lj_asm_arm64.h | 26 +++--- > src/lj_emit_arm64.h | 66 ++++++++-------- > ...1057-arm64-stp-fusing-across-tbar.test.lua | 79 +++++++++++++++++++ > 4 files changed, 126 insertions(+), 48 deletions(-) > create mode 100644 test/tarantool-tests/lj-1057-arm64-stp-fusing-across-tbar.test.lua > --------------DguFOetFy8b2LTIhairM6qVA Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Hi, Sergey!

LGTM patch series

On 7/24/25 12:03, Sergey Kaplun wrote:
The first 2 patches are required to avoid conflicts with the last one
patch. The last patch fixes incorrect fusion of instructions across IR,
which leads to incorrect label target.

Related issues:
* https://github.com/tarantool/tarantool/issues/11691
* https://github.com/LuaJIT/LuaJIT/issues/1057

Mike Pall (3):
  ARM64: Improve generation of immediates.
  ARM64: More improvements to the generation of immediates.
  ARM64: Prevent STP fusion for conditional code emitted by TBAR.

 src/lj_asm.c                                  |  3 +
 src/lj_asm_arm64.h                            | 26 +++---
 src/lj_emit_arm64.h                           | 66 ++++++++--------
 ...1057-arm64-stp-fusing-across-tbar.test.lua | 79 +++++++++++++++++++
 4 files changed, 126 insertions(+), 48 deletions(-)
 create mode 100644 test/tarantool-tests/lj-1057-arm64-stp-fusing-across-tbar.test.lua

--------------DguFOetFy8b2LTIhairM6qVA--