All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Jim MacArthur <jim.macarthur@linaro.org>
Cc: qemu-devel@nongnu.org,  richard.henderson@linaro.org
Subject: Re: [PATCH 2/3] tests/tcg/arm: Tests for new FPRCVT instructions
Date: Fri, 19 Jun 2026 12:46:41 +0100	[thread overview]
Message-ID: <87ldcag3by.fsf@draig.linaro.org> (raw)
In-Reply-To: <ajUg9sIsy9if_JM0@linaro.org> (Jim MacArthur's message of "Fri, 19 Jun 2026 11:59:02 +0100")

Jim MacArthur <jim.macarthur@linaro.org> writes:

> On Thu, Jun 18, 2026 at 08:04:27AM -0700, Richard Henderson wrote:
>> On 6/18/26 06:25, Alex Bennée wrote:
>> > I'm not sure about this as now we have one test with two modes. Can we
>> > not just create a new binary (fcvt-fprcvt) and keep running the original
>> > test either way.
>> > 
>> > See how we do that for the sha512 and it's various vector variants.
>> 
>> You certainly don't want to be duplicating the reference file.
>> 
>> Perhaps test the v8.0 convert insn output vs the FEAT_FPRCVT insn output directly?
>> 
>> Also, this patch is ordered incorrectly.  With the instruction feature test
>> properly in place, it will fail without the final patch to enable the
>> feature.
>
> I would rather not duplicate the reference file, but the other options include significant changes to the existing fcvt.c test.
>
> We could:
>
> 1) Make a separate fcvt-fprcvt.c test which compiles with the fcvt.c test, needing a header file for functions - requiring a much smaller separate fcvt-fprcvt.ref file, but information would still be duplicated in it
> 2) As you suggest, do a direct comparison between the general register
> and SIMD/FP regs, but since the current tests just output strings, it
> would require a significant change to how the current fcvt.c works.

We'd still keep the reference file to validate the main case though
right? We would just be inlining the SIMD into convert_single_to_integer
and validating it got the same result as the main conversion function.
It would be quiet unless it got something wrong.

>
> I will probably do the second option, but if anyone has any other ideas I'll listen.
>
> Jim

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


  reply	other threads:[~2026-06-19 11:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-18  8:20 [PATCH 0/3] Implement FEAT_FPRCVT in cpu_max Jim MacArthur
2026-06-18  8:20 ` [PATCH 1/3] target/arm/tcg: Implement new instructions for FPRCVT Jim MacArthur
2026-06-18 14:59   ` Richard Henderson
2026-06-18  8:20 ` [PATCH 2/3] tests/tcg/arm: Tests for new FPRCVT instructions Jim MacArthur
2026-06-18 13:25   ` Alex Bennée
2026-06-18 15:04     ` Richard Henderson
2026-06-19 10:59       ` Jim MacArthur
2026-06-19 11:46         ` Alex Bennée [this message]
2026-06-18  8:20 ` [PATCH 3/3] target/arm/tcg/cpu64.c: Add FEAT_FPRCVT to cpu_max Jim MacArthur
2026-06-18 13:22   ` Alex Bennée
2026-06-18 15:25   ` Richard Henderson

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=87ldcag3by.fsf@draig.linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=jim.macarthur@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.