-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ACT] [CTG] [ISAC] Add support for Zcf and Zcd extension (#497)
* Updated Zcf and Zcd test case * Updated Zcf and Zcd instruction support with respect to riscv-ctg and riscv-isac --------- Signed-off-by: anuani21 <[email protected]> Co-authored-by: James Shi <[email protected]>
- Loading branch information
1 parent
cd94912
commit 33d1289
Showing
16 changed files
with
2,349 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
c.fld: | ||
config: | ||
- check ISA:=regex(.*I.*F.*D.*C.*) | ||
mnemonics: | ||
c.fld: 0 | ||
rs1: | ||
<<: *c_regs | ||
rd: | ||
<<: *c_fregs | ||
op_comb: | ||
'rs1 != rd': 0 | ||
val_comb: | ||
'imm_val > 0 and fcsr == 0': 0 | ||
'imm_val == 0 and fcsr == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",5,False, scale_func = lambda x: x*8)': 0 | ||
'walking_zeros("imm_val",5,False, scale_func = lambda x: x*8)': 0 | ||
'alternate("imm_val",5, False,scale_func = lambda x: x*8)': 0 | ||
|
||
c.fsd: | ||
config: | ||
- check ISA:=regex(.*I.*F.*D.*C.*) | ||
opcode: | ||
c.fsd: 0 | ||
rs1: | ||
<<: *c_regs | ||
rs2: | ||
<<: *c_fregs | ||
op_comb: | ||
'rs1 != rs2': 0 | ||
val_comb: | ||
'imm_val > 0': 0 | ||
'imm_val == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",5,False, scale_func = lambda x: x*8)': 0 | ||
'walking_zeros("imm_val",5,False, scale_func = lambda x: x*8)': 0 | ||
'alternate("imm_val",5, False,scale_func = lambda x: x*8)': 0 | ||
|
||
c.fldsp: | ||
config: | ||
- check ISA:=regex(.*I.*F.*D.*C.*) | ||
opcode: | ||
c.fldsp: 0 | ||
rd: | ||
<<: *all_fregs | ||
val_comb: | ||
'imm_val > 0': 0 | ||
'imm_val == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",6,False, scale_func = lambda x: x*8)': 0 | ||
'walking_zeros("imm_val",6,False, scale_func = lambda x: x*8)': 0 | ||
'alternate("imm_val",6, False,scale_func = lambda x: x*8)': 0 | ||
|
||
c.fsdsp: | ||
config: | ||
- check ISA:=regex(.*I.*F.*D.*C.*) | ||
opcode: | ||
c.fsdsp: 0 | ||
rs2: | ||
<<: *all_fregs | ||
val_comb: | ||
'imm_val > 0': 0 | ||
'imm_val == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",6,False, scale_func = lambda x: x*8)': 0 | ||
'walking_zeros("imm_val",6,False, scale_func = lambda x: x*8)': 0 | ||
'alternate("imm_val",6, False,scale_func = lambda x: x*8)': 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
c.flw: | ||
config: | ||
- check ISA:=regex(.*I.*F.*C.*) | ||
mnemonics: | ||
c.flw: 0 | ||
rs1: | ||
<<: *c_regs | ||
rd: | ||
<<: *c_fregs | ||
val_comb: | ||
'imm_val > 0 and fcsr == 0': 0 | ||
'imm_val == 0 and fcsr == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",5,False, scale_func = lambda x: x*4)': 0 | ||
'walking_zeros("imm_val",5,False, scale_func = lambda x: x*4)': 0 | ||
'alternate("imm_val",5, False,scale_func = lambda x: x*4)': 0 | ||
|
||
c.flwsp: | ||
config: | ||
- check ISA:=regex(.*I.*F.*C.*) | ||
opcode: | ||
c.flwsp: 0 | ||
rd: | ||
<<: *c_fregs | ||
val_comb: | ||
'imm_val > 0 and fcsr == 0': 0 | ||
'imm_val == 0 and fcsr == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",6,False, scale_func = lambda x: x*4)': 0 | ||
'walking_zeros("imm_val",6,False, scale_func = lambda x: x*4)': 0 | ||
'alternate("imm_val",6, False,scale_func = lambda x: x*4)': 0 | ||
|
||
c.fsw: | ||
config: | ||
- check ISA:=regex(.*I.*F.*C.*) | ||
opcode: | ||
c.fsw: 0 | ||
rs1: | ||
<<: *c_regs | ||
rs2: | ||
<<: *c_fregs | ||
op_comb: | ||
'rs1 != rs2': 0 | ||
val_comb: | ||
'imm_val > 0': 0 | ||
'imm_val == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",5,False, scale_func = lambda x: x*4)': 0 | ||
'walking_zeros("imm_val",5,False, scale_func = lambda x: x*4)': 0 | ||
'alternate("imm_val",5, False,scale_func = lambda x: x*4)': 0 | ||
|
||
c.fswsp: | ||
config: | ||
- check ISA:=regex(.*I.*F.*C.*) | ||
opcode: | ||
c.fswsp: 0 | ||
rs2: | ||
<<: *c_fregs | ||
val_comb: | ||
'imm_val > 0': 0 | ||
'imm_val == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",6,False, scale_func = lambda x: x*4)': 0 | ||
'walking_zeros("imm_val",6,False, scale_func = lambda x: x*4)': 0 | ||
'alternate("imm_val",6, False,scale_func = lambda x: x*4)': 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
c.fld: | ||
config: | ||
- check ISA:=regex(.*I.*F.*D.*C.*) | ||
mnemonics: | ||
c.fld: 0 | ||
rs1: | ||
<<: *c_regs | ||
rd: | ||
<<: *c_fregs | ||
op_comb: | ||
'rs1 != rd': 0 | ||
val_comb: | ||
'imm_val > 0 and fcsr == 0': 0 | ||
'imm_val == 0 and fcsr == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",5,False, scale_func = lambda x: x*8)': 0 | ||
'walking_zeros("imm_val",5,False, scale_func = lambda x: x*8)': 0 | ||
'alternate("imm_val",5, False,scale_func = lambda x: x*8)': 0 | ||
|
||
c.fsd: | ||
config: | ||
- check ISA:=regex(.*I.*F.*D.*C.*) | ||
opcode: | ||
c.fsd: 0 | ||
rs1: | ||
<<: *c_regs | ||
rs2: | ||
<<: *c_fregs | ||
op_comb: | ||
'rs1 != rs2': 0 | ||
val_comb: | ||
'imm_val > 0': 0 | ||
'imm_val == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",5,False, scale_func = lambda x: x*8)': 0 | ||
'walking_zeros("imm_val",5,False, scale_func = lambda x: x*8)': 0 | ||
'alternate("imm_val",5, False,scale_func = lambda x: x*8)': 0 | ||
|
||
c.fldsp: | ||
config: | ||
- check ISA:=regex(.*I.*F.*D.*C.*) | ||
opcode: | ||
c.fldsp: 0 | ||
rd: | ||
<<: *all_fregs | ||
val_comb: | ||
'imm_val > 0': 0 | ||
'imm_val == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",6,False, scale_func = lambda x: x*8)': 0 | ||
'walking_zeros("imm_val",6,False, scale_func = lambda x: x*8)': 0 | ||
'alternate("imm_val",6, False,scale_func = lambda x: x*8)': 0 | ||
|
||
c.fsdsp: | ||
config: | ||
- check ISA:=regex(.*I.*F.*D.*C.*) | ||
opcode: | ||
c.fsdsp: 0 | ||
rs2: | ||
<<: *all_fregs | ||
val_comb: | ||
'imm_val > 0': 0 | ||
'imm_val == 0': 0 | ||
abstract_comb: | ||
'walking_ones("imm_val",6,False, scale_func = lambda x: x*8)': 0 | ||
'walking_zeros("imm_val",6,False, scale_func = lambda x: x*8)': 0 | ||
'alternate("imm_val",6, False,scale_func = lambda x: x*8)': 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.