Skip to content

Commit

Permalink
syntax and style change
Browse files Browse the repository at this point in the history
  • Loading branch information
jmawet committed Feb 4, 2025
1 parent f9550cd commit 38633e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
12 changes: 2 additions & 10 deletions arch/inst/Zicond/czero.eqz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: |
If rs2 contains the value zero, this instruction writes the value zero to rd. Otherwise, this instruction
copies the contents of rs1 to rd.
This instruction carries a syntactic dependency from both rs1 and rs2 to rd. Furthermore, if the Zkt
extension is implemented, this instruction’s timing is independent of the data values in rs1 and rs2..
extension is implemented, this instruction’s timing is independent of the data values in rs1 and rs2.
definedBy: Zicond
assembly: xd, xs1, xs2
encoding:
Expand All @@ -27,15 +27,7 @@ access:
vu: always
data_independent_timing: false
operation(): |
XReg input1 = X[rs1];
XReg input2 = X[rs2];
XReg output = 0;
if(input2 != 0) {
output = input1;
}
X[rd] = output;
X[rd] = (X[rs2] == 0) ? 0 : X[rs1];
sail(): |
{
Expand Down
10 changes: 1 addition & 9 deletions arch/inst/Zicond/czero.nez.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,7 @@ access:
vu: always
data_independent_timing: false
operation(): |
XReg input1 = X[rs1];
XReg input2 = X[rs2];
XReg output = 0;
if(input2 == 0) {
output = input1;
}
X[rd] = output;
X[rd] = (X[rs2] != 0) ? 0 : X[rs1];
sail(): |
{
Expand Down

0 comments on commit 38633e9

Please sign in to comment.