Tarantool development patches archive
 help / color / mirror / Atom feed
From: Sergey Kaplun via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Mikhail Elhimov <m.elhimov@vk.team>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH luajit v2 2/2] test: add debug extension tests for FPMATHOP
Date: Mon, 21 Sep 2026 14:13:44 +0300	[thread overview]
Message-ID: <arERaDY2uin-mRYo@root> (raw)
In-Reply-To: <f502d5bb25f2fc84412bb0ab8abc6bb740a5d75b.1789476952.git.m.elhimov@vk.team>

Hi, Mikhail!
Thanks for the patch!
Please consider my comments below.

On 15.09.26, Mikhail Elhimov wrote:
> These tests extends set of tests that check mapping of FPMATHOP code

Typo: s/extends/extend/
Typo: s/set/the set/
Typo: s/mapping/the mapping/

> 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")

Instead of skipping the case, it is better to adjust the
LJIRFPMathOpBase. The issue with missing IR is due to DUALNUM mode,
which coerces the 1 to int, so there is no need to floor or ceil it. If
we use 1.1 instead for all FPMMath tests, it fixes the issue.

> +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
> 

-- 
Best regards,
Sergey Kaplun

      reply	other threads:[~2026-09-21 11:14 UTC|newest]

Thread overview: 5+ 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-21 11:23   ` Sergey Kaplun via Tarantool-patches
2026-09-15 13:09 ` [Tarantool-patches] [PATCH luajit v2 2/2] test: add debug extension tests for FPMATHOP Mikhail Elhimov via Tarantool-patches
2026-09-21 11:13   ` Sergey Kaplun 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=arERaDY2uin-mRYo@root \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=m.elhimov@vk.team \
    --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