Skip to content

Commit

Permalink
Enable randomness for more instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
ksco committed May 16, 2024
1 parent ad2a69a commit 78df2c8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions generator/insn_vdvs2vs1vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ func (i *Insn) genCodeVdVs2Vs1Vm(pos int) []string {
vd*2 + int(vs2EMUL1),
}

if vdEMUL1 == vs2EMUL1 && !strings.HasPrefix(i.Name, "vrgatherei16") {
vd1, vs1, vs2 := getVRegs(vdEMUL1, false, i.Name)
vd = vd1
vss = []int{vs1, vs2}
}

for r := 0; r < i.Option.Repeat; r += 1 {
builder.WriteString(i.gWriteRandomData(vdEMUL1))
builder.WriteString(i.gLoadDataIntoRegisterGroup(vd, vdEMUL1, SEW(8)))
Expand Down

0 comments on commit 78df2c8

Please sign in to comment.