[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 7/7] target/mips: Correct helper for MSA FCLASS.<W|D
From: |
Aleksandar Markovic |
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 |
From: Aleksandar Markovic <address@hidden>
Correct helper for MSA FCLASS.<W|D> instructions.
Signed-off-by: Aleksandar Markovic <address@hidden>
---
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
- [Qemu-devel] [PATCH 0/7] target/mips: Mips improvements for 4.1, Aleksandar Markovic, 2019/07/01
- [Qemu-devel] [PATCH 3/7] target/mips: Correct comments in msa_helper.c, Aleksandar Markovic, 2019/07/01
- [Qemu-devel] [PATCH 7/7] target/mips: Correct helper for MSA FCLASS.<W|D> instructions,
Aleksandar Markovic <=
- [Qemu-devel] [PATCH 6/7] target/mips: Unroll loops for MSA float max/min instructions, Aleksandar Markovic, 2019/07/01
- [Qemu-devel] [PATCH 5/7] tcg/tests: target/mips: Correct MSA test compilation and execution order, Aleksandar Markovic, 2019/07/01
- [Qemu-devel] [PATCH 4/7] target/mips: Correct comments in translate.c, Aleksandar Markovic, 2019/07/01
- [Qemu-devel] [PATCH 2/7] tcg/tests: target/mips: Amend MSA integer multiply tests, Aleksandar Markovic, 2019/07/01
- [Qemu-devel] [PATCH 1/7] tcg/tests: target/mips: Amend MSA fixed point multiply tests, Aleksandar Markovic, 2019/07/01
- Re: [Qemu-devel] [PATCH 0/7] target/mips: Mips improvements for 4.1, Aleksandar Rikalo, 2019/07/01