set isvec when predication enabled
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 4 Nov 2018 02:27:48 +0000 (02:27 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 4 Nov 2018 02:27:48 +0000 (02:27 +0000)
riscv/sv.cc

index 75dac8a919b5dacad4ace51fb822d725cd67af9d..60fd66530e98e1d2cc32e390161f0b2352d5302a 100644 (file)
@@ -244,7 +244,7 @@ reg_spec_t sv_insn_t::predicated(reg_spec_t const& spec, uint64_t pred)
     fprintf(stderr, "predication %ld %d %lx\n", spec.reg, (*spec.offset), pred);
     res.reg = 0;
     res.offset = 0;
-    res.isvec = false;
+    res.isvec = spec.isvec;
     return res;
 }