From a7a02300721413230c7693e39e99a96927015401 Mon Sep 17 00:00:00 2001
From: Igor Munkin <imun@tarantool.org>
Date: Fri, 10 Mar 2023 17:02:27 +0000
Subject: [PATCH] luajit: bump new version

* ARM64: Avoid side-effects of constant rematerialization.
* ARM64: Fix {AHUV}LOAD specialized to nil/false/true.
* ARM64: Fix pcall() error case.
* Fix math.min()/math.max() inconsistencies.
* test: add test case for math.modf

Closes #6163
Part of #8069
Follows up #7230

NO_DOC=LuaJIT submodule bump
NO_TEST=LuaJIT submodule bump
---
 changelogs/unreleased/gh-8069-luajit-fixes.md | 10 ++++++++++
 third_party/luajit                            |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)
 create mode 100644 changelogs/unreleased/gh-8069-luajit-fixes.md

diff --git a/changelogs/unreleased/gh-8069-luajit-fixes.md b/changelogs/unreleased/gh-8069-luajit-fixes.md
new file mode 100644
index 0000000000..51f22649bc
--- /dev/null
+++ b/changelogs/unreleased/gh-8069-luajit-fixes.md
@@ -0,0 +1,10 @@
+## bugfix/luajit
+
+Backported patches from vanilla LuaJIT trunk (gh-8069). In the scope of this
+activity, the following issues have been resolved:
+
+* Fixed successful `math.min/math.max` call with no args (gh-6163).
+* Fixed inconsistencies in `math.min/math.max` calls with NaN arg (gh-6163).
+* Fixed `pcall()` call without arguments on arm64.
+* Fixed assembling of IR_{AHUV}LOAD specialized to boolean for aarch64.
+* Fixed constant rematerialization on arm64.
diff --git a/third_party/luajit b/third_party/luajit
index cfc0deb5ce..15e9383bbc 160000
--- a/third_party/luajit
+++ b/third_party/luajit
@@ -1 +1 @@
-Subproject commit cfc0deb5ce4a881dfdbb0a307dd3c94bc221e36d
+Subproject commit 15e9383bbcaff11db20dda335251f05fbb26cce2
-- 
GitLab