Skip to content

Commit

Permalink
No 0 immediate for compressed shifts
Browse files Browse the repository at this point in the history
  • Loading branch information
jordancarlin committed Feb 23, 2025
1 parent 71215e1 commit 9e7074b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions templates/coverage/cp_uimm_n0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cp_uimm : coverpoint unsigned'(ins.current.imm) iff (ins.trap == 0 ) {
`ifdef XLEN32
bins uimm[] = {[0:31]}; // 5 bit immediates
`else
bins uimm[] = {[0:63]}; // 6 bit immediates
`endif
ignore_bins zero = {0};
}
6 changes: 3 additions & 3 deletions testplans/Zca.csv
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ c.nop,CN,x,x,x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
c.or,CA,x,x,x,,,,x,x,,,x,x,c,,c,,,,,x,x,x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
c.sd,CS,,x,x,,,,,x,,,,,,,,,,,,x,x,,,,8,,,,,,,,,,,,,,,,,,,,,,,,,,,,
c.sdsp,CSS,,x,x,,x,,,x,,,,,,,,,,,,,,,,,8sp,,,,,,,,,,,,,,,,,,,,,,,,,,,,
c.slli,CI,x,x,x,,,nx0,x,,c,,,,,,,,,x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
c.srai,CBP,x,x,x,,,,x,,c,,,,,c,,,,x,,x,,x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
c.srli,CBP,x,x,x,,,,x,,c,,,,,c,,,,x,,x,,x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
c.slli,CI,x,x,x,,,nx0,x,,c,,,,,,,,,n0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
c.srai,CBP,x,x,x,,,,x,,c,,,,,c,,,,n0,,x,,x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
c.srli,CBP,x,x,x,,,,x,,c,,,,,c,,,,n0,,x,,x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
c.sub,CA,x,x,x,,,,x,x,,,x,,c,,c,,,,,x,x,x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
c.subw,CA,,x,x,,,,x,x,,,,,c,,c,,,,,x,x,x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
c.sw,CS,x,x,x,,,,,x,,,,,,,,,,,,x,x,,,,x,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Expand Down

0 comments on commit 9e7074b

Please sign in to comment.