[Tarantool-patches] [PATCH luajit v2 2/2] test: add debug extension tests for FPMATHOP

Mikhail Elhimov m.elhimov at vk.team
Tue Sep 15 16:09:40 MSK 2026


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()
 
 
+ at 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'
+
+
+ at 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



More information about the Tarantool-patches mailing list