All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aleksandar Markovic <aleksandar.markovic@rt-rk.com>
To: qemu-devel@nongnu.org, arikalo@wavecomp.com
Cc: amarkovic@wavecomp.com
Subject: [Qemu-devel] [PATCH 7/7] target/mips: Correct helper for MSA FCLASS.<W|D> instructions
Date: Mon,  1 Jul 2019 13:04:40 +0200	[thread overview]
Message-ID: <1561979080-26195-8-git-send-email-aleksandar.markovic@rt-rk.com> (raw)
In-Reply-To: <1561979080-26195-1-git-send-email-aleksandar.markovic@rt-rk.com>

From: Aleksandar Markovic <amarkovic@wavecomp.com>

Correct helper for MSA FCLASS.<W|D> instructions.

Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
---
 target/mips/msa_helper.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/target/mips/msa_helper.c b/target/mips/msa_helper.c
index 9db2ce7..2240363 100644
--- a/target/mips/msa_helper.c
+++ b/target/mips/msa_helper.c
@@ -4058,9 +4058,11 @@ void helper_msa_fclass_df(CPUMIPSState *env, uint32_t df,
         pwd->w[1] = float_class_s(pws->w[1], status);
         pwd->w[2] = float_class_s(pws->w[2], status);
         pwd->w[3] = float_class_s(pws->w[3], status);
-    } else {
+    } else if (df == DF_DOUBLE) {
         pwd->d[0] = float_class_d(pws->d[0], status);
         pwd->d[1] = float_class_d(pws->d[1], status);
+    } else {
+        assert(0);
     }
 }
 
-- 
2.7.4



  parent reply	other threads:[~2019-07-01 11:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-01 11:04 [Qemu-devel] [PATCH 0/7] target/mips: Mips improvements for 4.1 Aleksandar Markovic
2019-07-01 11:04 ` [Qemu-devel] [PATCH 1/7] tcg/tests: target/mips: Amend MSA fixed point multiply tests Aleksandar Markovic
2019-07-01 11:04 ` [Qemu-devel] [PATCH 2/7] tcg/tests: target/mips: Amend MSA integer " Aleksandar Markovic
2019-07-01 11:04 ` [Qemu-devel] [PATCH 3/7] target/mips: Correct comments in msa_helper.c Aleksandar Markovic
2019-07-01 11:04 ` [Qemu-devel] [PATCH 4/7] target/mips: Correct comments in translate.c Aleksandar Markovic
2019-07-01 11:28   ` Philippe Mathieu-Daudé
2019-07-01 11:04 ` [Qemu-devel] [PATCH 5/7] tcg/tests: target/mips: Correct MSA test compilation and execution order Aleksandar Markovic
2019-07-01 11:04 ` [Qemu-devel] [PATCH 6/7] target/mips: Unroll loops for MSA float max/min instructions Aleksandar Markovic
2019-07-01 11:04 ` Aleksandar Markovic [this message]
2019-07-01 11:21 ` [Qemu-devel] [PATCH 0/7] target/mips: Mips improvements for 4.1 Aleksandar Rikalo

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=1561979080-26195-8-git-send-email-aleksandar.markovic@rt-rk.com \
    --to=aleksandar.markovic@rt-rk.com \
    --cc=amarkovic@wavecomp.com \
    --cc=arikalo@wavecomp.com \
    --cc=qemu-devel@nongnu.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.