Skip to content

Commit

Permalink
Zero vector registers before all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Feb 29, 2024
1 parent f8346b6 commit 3004022
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions generator/insn.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,13 @@ func (c *combination) initialize() string {
str := fmt.Sprintf(`
# Generating tests for VL: %d, LMUL: %s, SEW: %s, Mask: %v
# Zero all vector registers
vsetvli t0, x0, e8, m8, ta, ma
vmv.v.i v0, 0x0
vmv.v.i v8, 0x0
vmv.v.i v16, 0x0
vmv.v.i v24, 0x0
# Initialize vxrm CSR
csrwi vxrm, %d # %s
Expand Down

0 comments on commit 3004022

Please sign in to comment.