Skip to content

Commit e90f860

Browse files
author
dev-aditya-hub
committed
fix cmp_fd_fs1_fs2: use float_regs.reg_count not int_regs.reg_count
1 parent 623c0a4 commit e90f860

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

generators/testgen/src/testgen/coverpoints/cmp_fp_regs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ def make_cmp_fs1_fs2(instr_name: str, instr_type: str, coverpoint: str, test_dat
118118
@add_coverpoint_generator("cmp_fd_fs1_fs2")
119119
def make_cmp_fd_fs1_fs2(instr_name: str, instr_type: str, coverpoint: str, test_data: TestData) -> list[TestChunk]:
120120
"""Generate tests where fd = fs1 = fs2."""
121-
# Determine which rd registers to test based on coverpoint variant
121+
# Determine which fd registers to test based on coverpoint variant
122122
if coverpoint == "cmp_fd_fs1_fs2":
123-
regs = range(test_data.int_regs.reg_count)
123+
regs = range(test_data.float_regs.reg_count)
124124
elif coverpoint.endswith("_nx0"):
125-
regs = range(1, test_data.int_regs.reg_count) # Exclude x0
125+
regs = range(1, test_data.float_regs.reg_count) # Exclude f0
126126
else:
127127
raise ValueError(f"Unknown cmp_fd_fs1_fs2 coverpoint variant: {coverpoint} for {instr_name}")
128128

0 commit comments

Comments
 (0)