From: Richard Henderson <richard.henderson@linaro.org>
To: matheus.ferst@eldorado.org.br, qemu-devel@nongnu.org,
qemu-ppc@nongnu.org
Cc: "Víctor Colombo" <victor.colombo@eldorado.org.br>,
groug@kaod.org, danielhb413@gmail.com, clg@kaod.org,
david@gibson.dropbear.id.au
Subject: Re: [PATCH v5 46/49] target/ppc: Implement xvcvbf16spn and xvcvspbf16 instructions
Date: Fri, 25 Feb 2022 12:17:10 -1000 [thread overview]
Message-ID: <d53ae7ea-83bd-f26b-28ce-20e22930a7f3@linaro.org> (raw)
In-Reply-To: <20220225210936.1749575-47-matheus.ferst@eldorado.org.br>
On 2/25/22 11:09, matheus.ferst@eldorado.org.br wrote:
> +void helper_XVCVSPBF16(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb)
> +{
> + ppc_vsr_t t = { };
> + int i, status;
> +
> + for (i = 0; i < 4; i++) {
> + t.VsrH(2 * i + 1) = float32_to_bfloat16(xb->VsrW(i), &env->fp_status);
> + }
> +
> + status = get_float_exception_flags(&env->fp_status);
> + if (unlikely(status & float_flag_invalid_snan)) {
> + float_invalid_op_vxsnan(env, GETPC());
> + }
> +
> + *xt = t;
> + do_float_check_status(env, GETPC());
> +}
Missing reset_fpstatus. Otherwise.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
PS: Which is reminding me that cleaning that up has been on the to-do list for a long
time. We should be able to rely on env->fp_status.float_exception_flags being 0 between
and at the start of each fp operation. In do_float_check_status, we would reset
float_exception_flags in the expected unlikely case that it is ever non-zero.
next prev parent reply other threads:[~2022-02-25 22:51 UTC|newest]
Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-25 21:08 [PATCH v5 00/49] target/ppc: PowerISA Vector/VSX instruction batch matheus.ferst
2022-02-25 21:08 ` [PATCH v5 01/49] target/ppc: Introduce TRANS*FLAGS macros matheus.ferst
2022-02-25 21:08 ` [PATCH v5 02/49] target/ppc: moved vector even and odd multiplication to decodetree matheus.ferst
2022-02-25 21:08 ` [PATCH v5 03/49] target/ppc: Moved vector multiply high and low " matheus.ferst
2022-02-25 21:08 ` [PATCH v5 04/49] target/ppc: vmulh* instructions without helpers matheus.ferst
2022-02-25 21:16 ` Richard Henderson
2022-02-25 21:08 ` [PATCH v5 05/49] target/ppc: Implement vmsumcud instruction matheus.ferst
2022-02-25 21:08 ` [PATCH v5 06/49] target/ppc: Implement vmsumudm instruction matheus.ferst
2022-02-25 21:08 ` [PATCH v5 07/49] target/ppc: Move vexts[bhw]2[wd] to decodetree matheus.ferst
2022-02-25 21:08 ` [PATCH v5 08/49] target/ppc: Implement vextsd2q matheus.ferst
2022-02-25 21:08 ` [PATCH v5 09/49] target/ppc: Move Vector Compare Equal/Not Equal/Greater Than to decodetree matheus.ferst
2022-02-25 21:08 ` [PATCH v5 10/49] target/ppc: Move Vector Compare Not Equal or Zero " matheus.ferst
2022-02-25 21:08 ` [PATCH v5 11/49] target/ppc: Implement Vector Compare Equal Quadword matheus.ferst
2022-02-25 21:08 ` [PATCH v5 12/49] target/ppc: Implement Vector Compare Greater Than Quadword matheus.ferst
2022-02-25 21:09 ` [PATCH v5 13/49] target/ppc: Implement Vector Compare Quadword matheus.ferst
2022-02-25 21:09 ` [PATCH v5 14/49] target/ppc: implement vstri[bh][lr] matheus.ferst
2022-02-25 21:09 ` [PATCH v5 15/49] target/ppc: implement vclrlb matheus.ferst
2022-02-25 21:09 ` [PATCH v5 16/49] target/ppc: implement vclrrb matheus.ferst
2022-02-25 21:09 ` [PATCH v5 17/49] target/ppc: implement vcntmb[bhwd] matheus.ferst
2022-02-25 21:09 ` [PATCH v5 18/49] target/ppc: implement vgnb matheus.ferst
2022-02-25 21:09 ` [PATCH v5 19/49] target/ppc: move vs[lr][a][bhwd] to decodetree matheus.ferst
2022-02-25 21:09 ` [PATCH v5 20/49] target/ppc: implement vslq matheus.ferst
2022-02-25 21:09 ` [PATCH v5 21/49] target/ppc: implement vsrq matheus.ferst
2022-02-25 21:09 ` [PATCH v5 22/49] target/ppc: implement vsraq matheus.ferst
2022-02-25 21:09 ` [PATCH v5 23/49] target/ppc: move vrl[bhwd] to decodetree matheus.ferst
2022-02-25 21:09 ` [PATCH v5 24/49] target/ppc: move vrl[bhwd]nm/vrl[bhwd]mi " matheus.ferst
2022-02-25 21:31 ` Richard Henderson
2022-02-25 21:09 ` [PATCH v5 25/49] target/ppc: implement vrlq matheus.ferst
2022-02-25 21:09 ` [PATCH v5 26/49] target/ppc: implement vrlqnm matheus.ferst
2022-02-25 21:42 ` Richard Henderson
2022-02-25 21:09 ` [PATCH v5 27/49] target/ppc: implement vrlqmi matheus.ferst
2022-02-25 21:44 ` Richard Henderson
2022-02-25 21:09 ` [PATCH v5 28/49] target/ppc: Move vsel and vperm/vpermr to decodetree matheus.ferst
2022-02-25 21:09 ` [PATCH v5 29/49] target/ppc: Move xxsel " matheus.ferst
2022-02-25 21:09 ` [PATCH v5 30/49] target/ppc: move xxperm/xxpermr " matheus.ferst
2022-02-25 21:09 ` [PATCH v5 31/49] target/ppc: Move xxpermdi " matheus.ferst
2022-02-25 21:09 ` [PATCH v5 32/49] target/ppc: Implement xxpermx instruction matheus.ferst
2022-02-25 21:09 ` [PATCH v5 33/49] tcg/tcg-op-gvec.c: Introduce tcg_gen_gvec_4i matheus.ferst
2022-02-25 21:09 ` [PATCH v5 34/49] target/ppc: Implement xxeval matheus.ferst
2022-02-25 21:50 ` Richard Henderson
2022-02-25 21:09 ` [PATCH v5 35/49] target/ppc: Implement xxgenpcv[bhwd]m instruction matheus.ferst
2022-02-25 21:53 ` Richard Henderson
2022-02-25 21:59 ` Richard Henderson
2022-02-25 21:09 ` [PATCH v5 36/49] target/ppc: move xs[n]madd[am][ds]p/xs[n]msub[am][ds]p to decodetree matheus.ferst
2022-02-25 21:09 ` [PATCH v5 37/49] target/ppc: implement xs[n]maddqp[o]/xs[n]msubqp[o] matheus.ferst
2022-02-25 21:09 ` [PATCH v5 38/49] target/ppc: Implement xvtlsbb instruction matheus.ferst
2022-02-25 22:01 ` Richard Henderson
2022-02-25 21:09 ` [PATCH v5 39/49] target/ppc: Remove xscmpnedp instruction matheus.ferst
2022-02-25 21:09 ` [PATCH v5 40/49] target/ppc: Refactor VSX_SCALAR_CMP_DP matheus.ferst
2022-02-25 22:04 ` Richard Henderson
2022-02-25 21:09 ` [PATCH v5 41/49] target/ppc: Implement xscmp{eq,ge,gt}qp matheus.ferst
2022-02-25 21:09 ` [PATCH v5 42/49] target/ppc: Move xscmp{eq,ge,gt}dp to decodetree matheus.ferst
2022-02-25 21:09 ` [PATCH v5 43/49] target/ppc: Move xs{max, min}[cj]dp to use do_helper_XX3 matheus.ferst
2022-02-25 21:09 ` [PATCH v5 44/49] target/ppc: Refactor VSX_MAX_MINC helper matheus.ferst
2022-02-25 22:10 ` Richard Henderson
2022-02-25 21:09 ` [PATCH v5 45/49] target/ppc: Implement xs{max,min}cqp matheus.ferst
2022-02-25 22:12 ` Richard Henderson
2022-02-25 21:09 ` [PATCH v5 46/49] target/ppc: Implement xvcvbf16spn and xvcvspbf16 instructions matheus.ferst
2022-02-25 22:17 ` Richard Henderson [this message]
2022-02-25 21:09 ` [PATCH v5 47/49] target/ppc: implement plxsd/pstxsd matheus.ferst
2022-02-25 21:09 ` [PATCH v5 48/49] target/ppc: implement plxssp/pstxssp matheus.ferst
2022-02-25 21:09 ` [PATCH v5 49/49] target/ppc: implement lxvr[bhwd]/stxvr[bhwd]x matheus.ferst
2022-03-01 8:29 ` [PATCH v5 00/49] target/ppc: PowerISA Vector/VSX instruction batch Cédric Le Goater
2022-03-02 19:56 ` Matheus K. Ferst
2022-03-03 7:20 ` Cédric Le Goater
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=d53ae7ea-83bd-f26b-28ce-20e22930a7f3@linaro.org \
--to=richard.henderson@linaro.org \
--cc=clg@kaod.org \
--cc=danielhb413@gmail.com \
--cc=david@gibson.dropbear.id.au \
--cc=groug@kaod.org \
--cc=matheus.ferst@eldorado.org.br \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=victor.colombo@eldorado.org.br \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).