[Tarantool-patches] [PATCH luajit 0/2] Fixes for 64 bit operands of the bit library

Sergey Kaplun skaplun at tarantool.org
Wed Oct 2 11:09:04 MSK 2024


This patchset fixes a bunch of misbehaviours for the 64-bit-wide
operands in the built-in `bit` library.

Branch: https://github.com/tarantool/luajit/tree/skaplun/lj-1079-fix-64-bitshift-folds
Related issues:
* https://github.com/tarantool/tarantool/issues/10199
* https://github.com/LuaJIT/LuaJIT/issues/1079
* https://github.com/LuaJIT/LuaJIT/issues/1273

Mike Pall (2):
  Fix bit op coercion in DUALNUM builds.
  FFI: Fix 64 bit shift fold rules.

 src/lj_carith.c                               |  4 +-
 src/lj_opt_fold.c                             |  8 +-
 .../lj-1079-fix-64-bitshift-folds.test.lua    | 74 +++++++++++++++++++
 .../lj-1273-dualnum-bit-coercion.test.lua     | 19 +++++
 4 files changed, 98 insertions(+), 7 deletions(-)
 create mode 100644 test/tarantool-tests/lj-1079-fix-64-bitshift-folds.test.lua
 create mode 100644 test/tarantool-tests/lj-1273-dualnum-bit-coercion.test.lua

-- 
2.46.2



More information about the Tarantool-patches mailing list