predication remapping added
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 17 Nov 2018 04:40:13 +0000 (04:40 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 17 Nov 2018 04:40:13 +0000 (04:40 +0000)
riscv/sv.cc

index 69a4637aa48a32829e833497842bab339d8f3597..016fbd8689f5eabad9a175d65ae1ff004e9725f5 100644 (file)
@@ -237,7 +237,7 @@ reg_spec_t sv_insn_t::predicated(reg_spec_t const& spec, uint64_t pred)
     {
         return res;
     }
-    if (pred & (1<<(*spec.offset)))
+    if (pred & (1<<p->s.pred_remap(res.reg, *spec.offset)))
     {
         return res;
     }