File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 33$schema : " inst_schema.json#"
44kind : instruction
55name : czero.eqz
6- long_name : No synopsis available .
6+ long_name : Conditional zero, if condition is equal to zero .
77description : |
8- No description available.
8+ If rs2 contains the value zero, this instruction writes the value zero to rd. Otherwise, this instruction
9+ copies the contents of rs1 to rd.
10+ This instruction carries a syntactic dependency from both rs1 and rs2 to rd. Furthermore, if the Zkt
11+ extension is implemented, this instruction’s timing is independent of the data values in rs1 and rs2.
912definedBy : Zicond
1013assembly : xd, xs1, xs2
1114encoding :
@@ -24,12 +27,13 @@ access:
2427 vu : always
2528data_independent_timing : false
2629operation() : |
30+ X[rd] = (X[rs2] == 0) ? 0 : X[rs1];
2731
2832sail() : |
2933 {
3034 let value = X(rs1);
3135 let condition = X(rs2);
32- let result : xlenbits = if (condition ! = zeros()) then zeros()
36+ let result : xlenbits = if (condition = = zeros()) then zeros()
3337 else value;
3438 X(rd) = result;
3539 RETIRE_SUCCESS
Original file line number Diff line number Diff line change 33$schema : " inst_schema.json#"
44kind : instruction
55name : czero.nez
6- long_name : No synopsis available .
6+ long_name : Conditional zero, if condition is nonzero .
77description : |
8- No description available.
8+ If rs2 contains a nonzero value, this instruction writes the value zero to rd. Otherwise, this
9+ instruction copies the contents of rs1 to rd.
10+ This instruction carries a syntactic dependency from both rs1 and rs2 to rd. Furthermore, if the Zkt
11+ extension is implemented, this instruction’s timing is independent of the data values in rs1 and rs2.
912definedBy : Zicond
1013assembly : xd, xs1, xs2
1114encoding :
@@ -24,6 +27,7 @@ access:
2427 vu : always
2528data_independent_timing : false
2629operation() : |
30+ X[rd] = (X[rs2] != 0) ? 0 : X[rs1];
2731
2832sail() : |
2933 {
You can’t perform that action at this time.
0 commit comments