From: Mikhail Elhimov via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Sergey Kaplun <skaplun@tarantool.org>,
Sergey Bronnikov <sergeyb@tarantool.org>,
Evgeniy Temirgaleev <e.temirgaleev@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: [Tarantool-patches] [PATCH luajit v2 2/2] test: add debug extension tests for FPMATHOP
Date: Tue, 15 Sep 2026 16:09:40 +0300 [thread overview]
Message-ID: <f502d5bb25f2fc84412bb0ab8abc6bb740a5d75b.1789476952.git.m.elhimov@vk.team> (raw)
In-Reply-To: <cover.1789476952.git.m.elhimov@vk.team>
These tests extends set of tests that check mapping of FPMATHOP code
into a human-readable form while dumping FPMATH IR with the debug
extension.
---
.../debug-extension-tests.py | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/test/tarantool-debugger-tests/debug-extension-tests.py b/test/tarantool-debugger-tests/debug-extension-tests.py
index 32701fd5..9989032b 100644
--- a/test/tarantool-debugger-tests/debug-extension-tests.py
+++ b/test/tarantool-debugger-tests/debug-extension-tests.py
@@ -711,6 +711,25 @@ class TestLJIRFPMathOpBase(TestCaseBase):
super(TestLJIRFPMathOpBase, cls).setUpClass()
+@unittest.skipIf(machine in ('arm64', 'aarch64'),
+ "not used as there is no corresponding hardware instruction")
+class TestLJIRFPMathFloor(TestLJIRFPMathOpBase):
+ lua_expr = 'math.floor(a)'
+ op = 'floor'
+
+
+@unittest.skipIf(machine in ('arm64', 'aarch64'),
+ "not used as there is no corresponding hardware instruction")
+class TestLJIRFPMathCeil(TestLJIRFPMathOpBase):
+ lua_expr = 'math.ceil(a)'
+ op = 'ceil'
+
+
+class TestLJIRFPMathSqrt(TestLJIRFPMathOpBase):
+ lua_expr = 'math.sqrt(a)'
+ op = 'sqrt'
+
+
class TestLJIRFPMathLog(TestLJIRFPMathOpBase):
lua_expr = 'math.log(a)'
op = 'log'
--
2.43.0
prev parent reply other threads:[~2026-09-15 13:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-15 13:09 [Tarantool-patches] [PATCH luajit v2 0/2] dbg: fix mapping of FPMATHOP Mikhail Elhimov via Tarantool-patches
2026-09-15 13:09 ` [Tarantool-patches] [PATCH luajit v2 1/2] dbg: fix mapping of FPMATHOP to string Mikhail Elhimov via Tarantool-patches
2026-09-15 13:09 ` Mikhail Elhimov via Tarantool-patches [this message]
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=f502d5bb25f2fc84412bb0ab8abc6bb740a5d75b.1789476952.git.m.elhimov@vk.team \
--to=tarantool-patches@dev.tarantool.org \
--cc=e.temirgaleev@tarantool.org \
--cc=m.elhimov@vk.team \
--cc=sergeyb@tarantool.org \
--cc=skaplun@tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH luajit v2 2/2] test: add debug extension tests for FPMATHOP' \
/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