]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/mips: Correct helper for MSA FCLASS.<W|D> instructions
authorAleksandar Markovic <amarkovic@wavecomp.com>
Tue, 2 Jul 2019 11:50:13 +0000 (13:50 +0200)
committerAleksandar Markovic <amarkovic@wavecomp.com>
Tue, 2 Jul 2019 12:20:42 +0000 (14:20 +0200)
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>

target/mips/msa_helper.c

index 97f840b6e8a9dd29155da04c0d119cfda359a5df..a383c40eceafdaf5e0b7d1e99746275beaeb75e3 100644 (file)
@@ -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);
     }
 }