Skip to content

Commit

Permalink
[NFC] fix E0606: Possibly using variable 's_op2' before assignment
Browse files Browse the repository at this point in the history
Signed-off-by: Jerry Zhang Jian <jerry.zhangjian@sifive.com>
  • Loading branch information
jerryzj authored and kito-cheng committed Jun 7, 2024
1 parent 4dba225 commit 12183b8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def render(G, op_list, type_list, sew_list, lmul_list, decorator_list):

type_helper = TypeHelper(**args)

s_op2 = None
if (op in ["mulhsu", "ssra", "sra"] and data_type == "uint") or \
(op in ["ssrl", "srl"] and data_type == "int"):
# Unsigned mulhsu and ssra are unsupported, signed ssrl is unsupported
Expand Down

0 comments on commit 12183b8

Please sign in to comment.