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

Commit

Permalink
Updated yaml for Zcd instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
anuani21 committed Sep 26, 2024
1 parent dd17923 commit 0827734
Showing 1 changed file with 94 additions and 0 deletions.
94 changes: 94 additions & 0 deletions riscv_ctg/data/imc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1972,3 +1972,97 @@ c.fswsp:
// valreg: $valaddr_reg; valoffset: $val_offset
TEST_STORE_F($swreg,$testreg,$fcsr,$rs1,$rs2,$imm_val,$offset,$inst,$ea_align,$flagreg,$valaddr_reg, $val_offset)
c.fld:
sig:
stride: 2
sz: 'SIGALIGN'
val:
stride: 1
sz: '8'
val_template: "''"
load_instr: "fld"
rs1_op_data: *c_regs
rd_op_data: *c_fregs
xlen: [32,64]
std_op:
isa:
- IFDC
formattype: 'clformat'
fcsr_data: '[x<<5|y for x,y in itertools.product([0,1,2,3,4],range(0,2**5))]'
ea_align_data: '[0,1,2,3]'
imm_val_data: '[x*8 for x in gen_usign_dataset(5)]'
template: |-
// $comment
// opcode:$inst; op1:$rs1; dest:$rd; immval:$imm_val; align:$ea_align; flagreg:$flagreg
TEST_LOAD_F($swreg,$testreg,$fcsr,$rs1,$rd,$imm_val,$inst,$ea_align,$flagreg)
c.fldsp:
sig:
stride: 2
sz: 'SIGALIGN'
rd_op_data: *all_fregs
xlen: [32,64]
std_op:
isa:
- IFDC
formattype: 'ciformat'
imm_val_data: '[x*8 for x in gen_usign_dataset(6)]'
template: |-
// $comment
// opcode:$inst; op1:x2; dest:$rd; immval:$imm_val; align:$ea_align; flagreg:x4
TEST_LOAD_F($swreg,$testreg,$fcsr,x2,$rd,$imm_val,$inst,$ea_align,x4)
c.fsd:
sig:
stride: 2
sz: 'SIGALIGN'
val:
stride: 1
sz: 'FLEN/8'
val_template: "''"
load_instr: "FLREG"
rs1_op_data: *c_regs
rs2_op_data: *c_fregs
xlen: [32,64]
isa:
- IFDC
fcsr_data: '[x<<5|y for x,y in itertools.product([0,1,2,3,4],range(0,2**5))]'
std_op:
formattype: 'csformat'
ea_align_data: '[0,1,2,3]'
rs2_val_data: 'gen_sign_dataset(xlen)'
imm_val_data: '[x*8 for x in gen_usign_dataset(5)]'
template: |-
// $comment
// opcode: $inst; op1:$rs1; op2:$rs2; op2val:$rs2_val; immval:$imm_val; align:$ea_align; flagreg:$flagreg;
// valreg: $valaddr_reg; valoffset: $val_offset;
TEST_STORE_F($swreg,$testreg,0,$rs1,$rs2,$imm_val,$offset,$inst,0,$flagreg,$valaddr_reg, $val_offset)
c.fsdsp:
sig:
stride: 2
sz: 'SIGALIGN'
val:
stride: 1
sz: 'FLEN/8'
val_template: "''"
load_instr: "FLREG"
rs2_op_data: *all_fregs
xlen: [32,64]
std_op:
isa:
- IFDC
fcsr_data: '[x<<5|y for x,y in itertools.product([0,1,2,3,4],range(0,2**5))]'
formattype: 'cssformat'
ea_align_data: '[0,1,2,3]'
rs2_val_data: 'gen_sign_dataset(xlen)'
imm_val_data: '[x*8 for x in gen_usign_dataset(6)]'
template: |-
// $comment
// opcode: $inst; op1:x2; op2:$rs2; op2val:$rs2_val; immval:$imm_val; align:$ea_align; flagreg:$flagreg;
// valreg: $valaddr_reg ; valoffset: $val_offset
TEST_STORE_F($swreg,$testreg,$fcsr,$rs1,$rs2,$imm_val,$offset,$inst,0,$flagreg,$valaddr_reg,$val_offset)

0 comments on commit 0827734

Please sign in to comment.