Tarantool development patches archive
 help / color / mirror / Atom feed
From: Sergey Kaplun via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Sergey Bronnikov <sergeyb@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: [Tarantool-patches] [PATCH luajit 0/3] Narrowing unary minus dualnum
Date: Mon,  2 Mar 2026 10:52:51 +0300	[thread overview]
Message-ID: <cover.1772437706.git.skaplun@tarantool.org> (raw)

This patch-set backports the fixes for the unary minus in the DUALNUM
build for 0 and -0. The first commit is required for simplified skip
conditions in the tests.

Branch: https://github.com/tarantool/luajit/tree/skaplun/lj-1418-1422-dualnum-narrowing-0
Related issues:
* https://github.com/LuaJIT/LuaJIT/issues/1418
* https://github.com/LuaJIT/LuaJIT/issues/1422
* https://github.com/LuaJIT/LuaJIT/issues/1442
* https://github.com/tarantool/tarantool/issues/12134

Mike Pall (3):
  Add ffi.abi("dualnum").
  DUALNUM: Fix narrowing of unary minus.
  DUALNUM: Improve/fix edge cases of unary minus.

 doc/ext_ffi_api.html                          |  2 +
 src/lib_ffi.c                                 |  3 ++
 src/lj_opt_narrow.c                           |  5 +-
 src/vm_arm.dasc                               |  5 +-
 src/vm_arm64.dasc                             |  2 +
 src/vm_mips.dasc                              |  6 ++-
 src/vm_mips64.dasc                            |  6 ++-
 src/vm_ppc.dasc                               |  7 ++-
 src/vm_x64.dasc                               |  4 ++
 src/vm_x86.dasc                               |  5 ++
 .../fix-jit-dump-ir-conv.test.lua             |  4 +-
 .../lj-1166-error-stitch-oom-ir-buff.test.lua |  3 +-
 ...lj-1418-dualnum-narrowing-minus-0.test.lua | 49 +++++++++++++++++
 .../lj-1422-incorrect-unm-for-mzero.test.lua  | 54 +++++++++++++++++++
 .../tarantool-tests/lj-1422-unm-zero.test.lua | 12 +++++
 .../lj-859-math-ceil-sign.test.lua            |  3 +-
 16 files changed, 160 insertions(+), 10 deletions(-)
 create mode 100644 test/tarantool-tests/lj-1418-dualnum-narrowing-minus-0.test.lua
 create mode 100644 test/tarantool-tests/lj-1422-incorrect-unm-for-mzero.test.lua
 create mode 100644 test/tarantool-tests/lj-1422-unm-zero.test.lua

-- 
2.53.0


             reply	other threads:[~2026-03-02  7:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-02  7:52 Sergey Kaplun via Tarantool-patches [this message]
2026-03-02  7:52 ` [Tarantool-patches] [PATCH luajit 1/3] Add ffi.abi("dualnum") Sergey Kaplun via Tarantool-patches
2026-03-02  7:52 ` [Tarantool-patches] [PATCH luajit 2/3] DUALNUM: Fix narrowing of unary minus Sergey Kaplun via Tarantool-patches
2026-03-02  7:52 ` [Tarantool-patches] [PATCH luajit 3/3] DUALNUM: Improve/fix edge cases " Sergey Kaplun via Tarantool-patches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1772437706.git.skaplun@tarantool.org \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=sergeyb@tarantool.org \
    --cc=skaplun@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH luajit 0/3] Narrowing unary minus dualnum' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox