From: Chinmay Rath <rathc@linux.vnet.ibm.com>
To: Richard Henderson <richard.henderson@linaro.org>,
Chinmay Rath <rathc@linux.ibm.com>,
qemu-ppc@nongnu.org
Cc: qemu-devel@nongnu.org, npiggin@gmail.com, danielhb413@gmail.com,
harshpb@linux.ibm.com
Subject: Re: [PATCH 4/4] target/ppc: Move VSX fp compare insns to decodetree.
Date: Sun, 9 Jun 2024 23:56:14 +0530 [thread overview]
Message-ID: <74394b4b-20da-4091-809c-acda19d9583c@linux.vnet.ibm.com> (raw)
In-Reply-To: <5419796e-f56f-49e6-8094-dd6795866c0b@linaro.org>
On 6/7/24 21:25, Richard Henderson wrote:
> On 6/7/24 07:49, Chinmay Rath wrote:
>> +static bool do_cmp(DisasContext *ctx, arg_XX3_rc *a,
>> + void (*helper)(TCGv_i32, TCGv_ptr, TCGv_ptr, TCGv_ptr,
>> TCGv_ptr))
>> +{
>> + TCGv_i32 ignored;
>> + TCGv_ptr xt, xa, xb;
>> + REQUIRE_VSX(ctx);
>> + xt = gen_vsr_ptr(a->xt);
>> + xa = gen_vsr_ptr(a->xa);
>> + xb = gen_vsr_ptr(a->xb);
>> + if (a->rc) {
>> + helper(cpu_crf[6], tcg_env, xt, xa, xb);
>> + } else {
>> + ignored = tcg_temp_new_i32();
>> + helper(ignored, tcg_env, xt, xa, xb);
>> + }
>
> Better to unify the helper call. E.g.
>
> dest = a->rc ? cpu_crf[6] : tcg_temp_new_i32();
> helper(dest, ...)
>
^
Sure Richard, will do in v2.
Thanks & Regards,
Chinmay
>
> Anyway,
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
>
>
> r~
prev parent reply other threads:[~2024-06-09 18:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-07 14:49 [PATCH 0/4] target/ppc: Move VSX storage access and compare Chinmay Rath
2024-06-07 14:49 ` [PATCH 1/4] target/ppc: Moving VSX scalar storage access insns to decodetree Chinmay Rath
2024-06-07 15:42 ` Richard Henderson
2024-06-07 14:49 ` [PATCH 2/4] target/ppc: Move VSX vector with length " Chinmay Rath
2024-06-07 15:41 ` Richard Henderson
2024-06-09 18:11 ` Chinmay Rath
2024-06-09 18:20 ` Richard Henderson
2024-06-07 14:49 ` [PATCH 3/4] target/ppc: Move VSX vector " Chinmay Rath
2024-06-07 15:46 ` Richard Henderson
2024-06-09 18:25 ` Chinmay Rath
2024-06-09 18:36 ` Chinmay Rath
2024-06-07 14:49 ` [PATCH 4/4] target/ppc: Move VSX fp compare " Chinmay Rath
2024-06-07 15:55 ` Richard Henderson
2024-06-09 18:26 ` Chinmay Rath [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=74394b4b-20da-4091-809c-acda19d9583c@linux.vnet.ibm.com \
--to=rathc@linux.vnet.ibm.com \
--cc=danielhb413@gmail.com \
--cc=harshpb@linux.ibm.com \
--cc=npiggin@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=rathc@linux.ibm.com \
--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.