From: "Alex Bennée" <alex.bennee@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org, qemu-arm@nongnu.org
Subject: Re: [Qemu-arm] [PATCH 2/2] target/arm: Tidy condition in disas_simd_two_reg_misc
Date: Wed, 02 May 2018 10:47:17 +0100 [thread overview]
Message-ID: <878t929yoq.fsf@linaro.org> (raw)
In-Reply-To: <20180501180455.11214-3-richard.henderson@linaro.org>
Richard Henderson <richard.henderson@linaro.org> writes:
> Path analysis shows that size == 3 && !is_q has been eliminated.
>
> Fixes: Coverity CID1385853
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> target/arm/translate-a64.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c
> index 97950dce1a..6d49f30b4a 100644
> --- a/target/arm/translate-a64.c
> +++ b/target/arm/translate-a64.c
> @@ -11473,7 +11473,11 @@ static void disas_simd_two_reg_misc(DisasContext *s, uint32_t insn)
> /* All 64-bit element operations can be shared with scalar 2misc */
> int pass;
>
> - for (pass = 0; pass < (is_q ? 2 : 1); pass++) {
> + /* Coverity claims (size == 3 && !is_q) has been eliminated
> + * from all paths leading to here.
> + */
> + tcg_debug_assert(is_q);
> + for (pass = 0; pass < 2; pass++) {
> TCGv_i64 tcg_op = tcg_temp_new_i64();
> TCGv_i64 tcg_res = tcg_temp_new_i64();
--
Alex Bennée
WARNING: multiple messages have this Message-ID (diff)
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org, qemu-arm@nongnu.org
Subject: Re: [Qemu-devel] [Qemu-arm] [PATCH 2/2] target/arm: Tidy condition in disas_simd_two_reg_misc
Date: Wed, 02 May 2018 10:47:17 +0100 [thread overview]
Message-ID: <878t929yoq.fsf@linaro.org> (raw)
In-Reply-To: <20180501180455.11214-3-richard.henderson@linaro.org>
Richard Henderson <richard.henderson@linaro.org> writes:
> Path analysis shows that size == 3 && !is_q has been eliminated.
>
> Fixes: Coverity CID1385853
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> target/arm/translate-a64.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c
> index 97950dce1a..6d49f30b4a 100644
> --- a/target/arm/translate-a64.c
> +++ b/target/arm/translate-a64.c
> @@ -11473,7 +11473,11 @@ static void disas_simd_two_reg_misc(DisasContext *s, uint32_t insn)
> /* All 64-bit element operations can be shared with scalar 2misc */
> int pass;
>
> - for (pass = 0; pass < (is_q ? 2 : 1); pass++) {
> + /* Coverity claims (size == 3 && !is_q) has been eliminated
> + * from all paths leading to here.
> + */
> + tcg_debug_assert(is_q);
> + for (pass = 0; pass < 2; pass++) {
> TCGv_i64 tcg_op = tcg_temp_new_i64();
> TCGv_i64 tcg_res = tcg_temp_new_i64();
--
Alex Bennée
next prev parent reply other threads:[~2018-05-02 9:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-01 18:04 [Qemu-arm] [PATCH 0/2] target/arm: Coverity fixups Richard Henderson
2018-05-01 18:04 ` [Qemu-devel] " Richard Henderson
2018-05-01 18:04 ` [Qemu-arm] [PATCH 1/2] target/arm: Tidy conditions in handle_vec_simd_shri Richard Henderson
2018-05-01 18:04 ` [Qemu-devel] " Richard Henderson
2018-05-02 9:46 ` [Qemu-arm] " Alex Bennée
2018-05-02 9:46 ` [Qemu-devel] " Alex Bennée
2018-05-01 18:04 ` [Qemu-arm] [PATCH 2/2] target/arm: Tidy condition in disas_simd_two_reg_misc Richard Henderson
2018-05-01 18:04 ` [Qemu-devel] " Richard Henderson
2018-05-02 9:47 ` Alex Bennée [this message]
2018-05-02 9:47 ` [Qemu-devel] [Qemu-arm] " Alex Bennée
2018-05-03 15:05 ` [Qemu-arm] [PATCH 0/2] target/arm: Coverity fixups Peter Maydell
2018-05-03 15:05 ` [Qemu-devel] " Peter Maydell
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=878t929yoq.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.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.