File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -287,6 +287,7 @@ versions:
287287 - Fix IDL code and description increasing shift to 6 bit for qc.extdupr and qc.extduprh instructions
288288 - Fix IDL code sign extension logic for qc.lieq instruction
289289 - Fix wrong mantissa bit selection in qc.norm, qc.normu and qc.normeu instructions
290+ - Fix wrong exponent calculation in qc.normeu instruction
290291 implies :
291292 - { name: Xqcia, version: "0.6.0" }
292293 - { name: Xqciac, version: "0.3.0" }
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ versions:
79798080 changes :
8181 - Fix wrong mantissa bit selection in qc.norm, qc.normu and qc.normeu instructions
82+ - Fix wrong exponent calculation in qc.normeu instruction
8283description : |
8384 The Xqcia extension includes eleven instructions to perform integer arithmetic.
8485
Original file line number Diff line number Diff line change @@ -33,5 +33,5 @@ access:
3333operation() : |
3434 XReg clz = ((xlen() - 1) - $signed(highest_set_bit(X[rs1]))) & ~1;
3535 XReg mnt = (X[rs1] << (clz & ~1));
36- XReg exp = ((- clz) & ~1);
36+ XReg exp = (-( clz & ~1) );
3737 X[rd] = {mnt[31:8],exp[7:0]};
You can’t perform that action at this time.
0 commit comments