projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c73f14
)
add comments
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 27 Jun 2019 08:33:46 +0000
(09:33 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 27 Jun 2019 08:33:46 +0000
(09:33 +0100)
riscv/insn_template_sv.cc
patch
|
blob
|
history
diff --git
a/riscv/insn_template_sv.cc
b/riscv/insn_template_sv.cc
index 4766a821e089f1690cb2be07faacf53b62ad8c35..b47cc7dcacc7bcb03b0d77b15bb36014dfdbbf5f 100644
(file)
--- a/
riscv/insn_template_sv.cc
+++ b/
riscv/insn_template_sv.cc
@@
-178,6
+178,7
@@
reg_t sv_proc_t::FN(processor_t* p, insn_t s_insn, reg_t pc)
#endif
if (!zeroingsrc)
{
+ // skip over masked-out elements in the src reg
while ((src_pset = (src_pred & (1<<pred_remap(src_preg, *src_offs))))
== 0) {
inc_offs(vlen, subvl, *src_offs, *ssv_offs);
@@
-188,6
+189,7
@@
reg_t sv_proc_t::FN(processor_t* p, insn_t s_insn, reg_t pc)
}
if (!zeroing)
{
+ // skip over masked-out elements in the dest reg
while ((dest_pset = (dest_pred & (1<<pred_remap(dest_preg, *dest_offs))))
== 0) {
inc_offs(vlen, subvl, *dest_offs, *sub_doffs);