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

Commit

Permalink
Add test cases in RV64
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Wadood <[email protected]>
  • Loading branch information
Abdulwadoodd committed Aug 20, 2023
1 parent f400219 commit 9bf14f6
Showing 1 changed file with 162 additions and 0 deletions.
162 changes: 162 additions & 0 deletions sample_cgfs/rv64ia.cgf
Original file line number Diff line number Diff line change
@@ -1,3 +1,165 @@
amoadd.w:
config:
- check ISA:=regex(.*I.*A.*)
mnemonics:
amoadd.w: 0
rs1:
<<: *all_regs_mx0
rs2:
<<: *all_regs
rd:
<<: *all_regs
op_comb:
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
<<: [*rs2val_walking]

amoand.w:
config:
- check ISA:=regex(.*I.*A.*)
mnemonics:
amoand.w: 0
rs1:
<<: *all_regs_mx0
rs2:
<<: *all_regs
rd:
<<: *all_regs
op_comb:
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
<<: [*rs2val_walking]

amoswap.w:
config:
- check ISA:=regex(.*I.*A.*)
mnemonics:
amoswap.w: 0
rs1:
<<: *all_regs_mx0
rs2:
<<: *all_regs
rd:
<<: *all_regs
op_comb:
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
<<: [*rs2val_walking]

amoxor.w:
config:
- check ISA:=regex(.*I.*A.*)
mnemonics:
amoxor.w: 0
rs1:
<<: *all_regs_mx0
rs2:
<<: *all_regs
rd:
<<: *all_regs
op_comb:
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
<<: [*rs2val_walking]

amoor.w:
config:
- check ISA:=regex(.*I.*A.*)
mnemonics:
amoor.w: 0
rs1:
<<: *all_regs_mx0
rs2:
<<: *all_regs
rd:
<<: *all_regs
op_comb:
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
<<: [*rs2val_walking]

amomin.w:
config:
- check ISA:=regex(.*I.*A.*)
mnemonics:
amomin.w: 0
rs1:
<<: *all_regs_mx0
rs2:
<<: *all_regs
rd:
<<: *all_regs
op_comb:
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
<<: [*rs2val_walking]

amominu.w:
config:
- check ISA:=regex(.*I.*A.*)
mnemonics:
amominu.w: 0
rs1:
<<: *all_regs_mx0
rs2:
<<: *all_regs
rd:
<<: *all_regs
op_comb:
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_unsgn]
abstract_comb:
<<: [*rs2val_walking_unsgn]

amomax.w:
config:
- check ISA:=regex(.*I.*A.*)
mnemonics:
amomax.w: 0
rs1:
<<: *all_regs_mx0
rs2:
<<: *all_regs
rd:
<<: *all_regs
op_comb:
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_sgn]
abstract_comb:
<<: [*rs2val_walking]

amomaxu.w:
config:
- check ISA:=regex(.*I.*A.*)
mnemonics:
amomaxu.w: 0
rs1:
<<: *all_regs_mx0
rs2:
<<: *all_regs
rd:
<<: *all_regs
op_comb:
<<: [*ramofmt_op_comb]
val_comb:
<<: [*base_rs2val_unsgn]
abstract_comb:
<<: [*rs2val_walking_unsgn]

amoadd.d:
config:
- check ISA:=regex(.*I.*A.*)
Expand Down

0 comments on commit 9bf14f6

Please sign in to comment.