-
Notifications
You must be signed in to change notification settings - Fork 51
Mismatch between hex and decimal values in the comments section of generated .S file #37
Comments
To be clear: there are 2 comments, and it's the first comment that is clearly wrong, since rs1==rs2, yet rs1val!=rs2val
|
Would be nice if the sign is also represented in hex rather explicit sign as below for the hex values. inst_5:// rs1==x24, rd==f11, rs1_val == -1227077728 and rm_val == 0 inst_6:// rs1==x7, rd==f7, rs1_val == 1227077728 and rm_val == 4 |
My preference is that hex values be raw hex with the exception of branch/jump and load/store offset values. |
The first line in the comments is the set of coverpoints which caused a particular test case to be generated. These are lines directly from the cgf. The second line is the key to identifying the values in the macro arguments, sort of a hint to understand which is which. Now the values don't match because of the |
OK, I get it. The first comment is effectively superseded by the second, because of the rs1==rs2 condition. |
In riscv_ctg/generator.py |
That will remove the values for cases where |
In the attached clmul-01.S file,
inst_1:
// rs1 == rs2 == rd, rs1==x29, rs2==x29, rd==x29, rs2_val == 9223372036854775807, rs1_val == 18446744073709550591
// opcode: clmul ; op1:x29; op2:x29; dest:x29; op1val:0xfffffffffffffbff; op2val:0xfffffffffffffbff
TEST_PKRR_OP(clmul, x29, x29, x29, 0x0000000000000000, 0xfffffffffffffbff, 0xfffffffffffffbff, x29, x1, 8, x2)
rs2_val and its hex equivalent in op2val are not same
Similarly in
inst_3:
// rs1 == rs2 != rd, rs1==x27, rs2==x27, rd==x30, rs2_val == 16140901064495857663,
// opcode: clmul ; op1:x27; op2:x27; dest:x30; op1val:0xfffffffffffffbff; op2val:0xfffffffffffffbff
TEST_PKRR_OP(clmul, x30, x27, x27, 0x0000000000000000, 0xfffffffffffffbff, 0xfffffffffffffbff, x27, x1, 24, x2)
rs2_val and its hex equivalent in op2val are not same
###########
riscv_ctg --version
RISC-V Compliance Test Generator, version 0.6.3
python3 --version
Python 3.6.9
clmul.cgf.txt
clmul-01.S.txt
The text was updated successfully, but these errors were encountered: