Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Update cgf file
Browse files Browse the repository at this point in the history
Generate only signed values for `amominu` and `amomaxu` tests

Signed-off-by: Abdul Wadood <[email protected]>
  • Loading branch information
Abdulwadoodd committed Aug 20, 2023
1 parent 80aaca2 commit f400219
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 27 deletions.
7 changes: 6 additions & 1 deletion sample_cgfs/dataset.cgf
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,12 @@ datasets:
'rs2 == rd != rs1': 0
'rs1 == rs2 == rd': 0
'rs1 != rs2 and rs1 != rd and rs2 != rd': 0


ramofmt_op_comb: &ramofmt_op_comb
'rs1 == rd != rs2': 0
'rs2 == rd != rs1': 0
'rs1 != rs2 and rs1 != rd and rs2 != rd': 0

r4fmt_op_comb: &r4fmt_op_comb
'rs1 == rs2 == rs3 == rd': 0
'rs1 == rs2 == rs3 != rd': 0
Expand Down
26 changes: 13 additions & 13 deletions sample_cgfs/rv32ia.cgf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ amoadd.w:
rd:
<<: *all_regs
op_comb:
<<: [*rfmt_op_comb]
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
Expand All @@ -28,7 +28,7 @@ amoand.w:
rd:
<<: *all_regs
op_comb:
<<: [*rfmt_op_comb]
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
Expand All @@ -46,7 +46,7 @@ amoswap.w:
rd:
<<: *all_regs
op_comb:
<<: [*rfmt_op_comb]
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
Expand All @@ -64,7 +64,7 @@ amoxor.w:
rd:
<<: *all_regs
op_comb:
<<: [*rfmt_op_comb]
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
Expand All @@ -82,7 +82,7 @@ amoor.w:
rd:
<<: *all_regs
op_comb:
<<: [*rfmt_op_comb]
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
Expand All @@ -100,7 +100,7 @@ amomin.w:
rd:
<<: *all_regs
op_comb:
<<: [*rfmt_op_comb]
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
Expand All @@ -118,11 +118,11 @@ amominu.w:
rd:
<<: *all_regs
op_comb:
<<: [*rfmt_op_comb]
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
<<: [*base_rs2val_unsgn]
abstract_comb:
<<: [*rs2val_walking]
<<: [*rs2val_walking_unsgn]

amomax.w:
config:
Expand All @@ -136,7 +136,7 @@ amomax.w:
rd:
<<: *all_regs
op_comb:
<<: [*rfmt_op_comb]
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
Expand All @@ -154,8 +154,8 @@ amomaxu.w:
rd:
<<: *all_regs
op_comb:
<<: [*rfmt_op_comb]
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
<<: [*base_rs2val_unsgn]
abstract_comb:
<<: [*rs2val_walking]
<<: [*rs2val_walking_unsgn]
26 changes: 13 additions & 13 deletions sample_cgfs/rv64ia.cgf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ amoadd.d:
rd:
<<: *all_regs
op_comb:
<<: [*rfmt_op_comb]
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
Expand All @@ -28,7 +28,7 @@ amoand.d:
rd:
<<: *all_regs
op_comb:
<<: [*rfmt_op_comb]
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
Expand All @@ -46,7 +46,7 @@ amoswap.d:
rd:
<<: *all_regs
op_comb:
<<: [*rfmt_op_comb]
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
Expand All @@ -64,7 +64,7 @@ amoxor.d:
rd:
<<: *all_regs
op_comb:
<<: [*rfmt_op_comb]
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
Expand All @@ -82,7 +82,7 @@ amoor.d:
rd:
<<: *all_regs
op_comb:
<<: [*rfmt_op_comb]
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
Expand All @@ -100,7 +100,7 @@ amomin.d:
rd:
<<: *all_regs
op_comb:
<<: [*rfmt_op_comb]
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
Expand All @@ -118,11 +118,11 @@ amominu.d:
rd:
<<: *all_regs
op_comb:
<<: [*rfmt_op_comb]
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
<<: [*base_rs2val_unsgn]
abstract_comb:
<<: [*rs2val_walking]
<<: [*rs2val_walking_unsgn]

amomax.d:
config:
Expand All @@ -136,7 +136,7 @@ amomax.d:
rd:
<<: *all_regs
op_comb:
<<: [*rfmt_op_comb]
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
Expand All @@ -154,8 +154,8 @@ amomaxu.d:
rd:
<<: *all_regs
op_comb:
<<: [*rfmt_op_comb]
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
<<: [*base_rs2val_unsgn]
abstract_comb:
<<: [*rs2val_walking]
<<: [*rs2val_walking_unsgn]

0 comments on commit f400219

Please sign in to comment.