diff options
author | Aleksandar Markovic | 2019-07-02 13:50:13 +0200 |
---|---|---|
committer | Aleksandar Markovic | 2019-07-02 14:20:42 +0200 |
commit | 698c5752c4e618dc17b4c78dfa566896c7bce5ef (patch) | |
tree | d084cf00772a870db7aeceffc53b2921faaf5df2 /target/mips | |
parent | target/mips: Unroll loops for MSA float max/min instructions (diff) | |
download | qemu-698c5752c4e618dc17b4c78dfa566896c7bce5ef.tar.gz qemu-698c5752c4e618dc17b4c78dfa566896c7bce5ef.tar.xz qemu-698c5752c4e618dc17b4c78dfa566896c7bce5ef.zip |
target/mips: Correct helper for MSA FCLASS.<W|D> instructions
Correct helper for MSA FCLASS.<W|D> instructions.
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com>
Message-Id: <1562068213-11307-8-git-send-email-aleksandar.markovic@rt-rk.com>
Diffstat (limited to 'target/mips')
-rw-r--r-- | target/mips/msa_helper.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target/mips/msa_helper.c b/target/mips/msa_helper.c index 97f840b6e8..a383c40ece 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); } } |