Skip to content

Commit

Permalink
Fixed generator for vd,vs2,vm format
Browse files Browse the repository at this point in the history
  • Loading branch information
ksco committed Feb 22, 2024
1 parent f6080aa commit b8d38fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generator/insn_vdvs2vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
)

func (i *Insn) genCodeVdVs2Vm(pos int) []string {
float := strings.HasPrefix(i.Name, "vf")
vdWidening := strings.HasPrefix(i.Name, "vfw")
vdNarrowing := strings.HasPrefix(i.Name, "vfn")
vdSize := iff(vdWidening, 2, 1)
Expand Down Expand Up @@ -39,7 +40,7 @@ func (i *Insn) genCodeVdVs2Vm(pos int) []string {
builder.WriteString(i.gWriteRandomData(vdEMUL1))
builder.WriteString(i.gLoadDataIntoRegisterGroup(vd, vdEMUL1, SEW(8)))

builder.WriteString(i.gWriteTestData(false, false, vs2EMUL1, vs2EEW, 0, 1))
builder.WriteString(i.gWriteTestData(float, !i.NoTestfloat3, vs2EMUL1, vs2EEW, 0, 1))
builder.WriteString(i.gLoadDataIntoRegisterGroup(vs2, vs2EMUL1, vs2EEW))

builder.WriteString("# -------------- TEST BEGIN --------------\n")
Expand Down

0 comments on commit b8d38fe

Please sign in to comment.