Skip to content

Commit

Permalink
[NFC] template/unary_op: address pylint failures
Browse files Browse the repository at this point in the history
Signed-off-by: Jerry Zhang Jian <[email protected]>
  • Loading branch information
jerryzj committed Oct 1, 2024
1 parent 4f4724b commit 4e5bcda
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def render(G,
if op in ["zext", "sext"]:
break

if data_type == "float" or data_type == "bfloat":
if data_type in ["float", "bfloat"]:
args["S_TYPE"] = "f"
args["OP"] = "f" + args["OP"]
inst_type_vvsm = InstType.VVFM
Expand Down Expand Up @@ -92,8 +92,7 @@ def render(G,
# for float type, accrdoing current naming scheming it
# should be vmv_v_v, same for vmerge.vvm.
vv_args = args
if (data_type == "float" or
data_type == "bfloat") and op in ["mv", "merge"]:
if data_type in ["float", "bfloat"] and op in ["mv", "merge"]:
vv_args = copy.deepcopy(args)
vv_args["OP"] = "v" + op

Expand Down

0 comments on commit 4e5bcda

Please sign in to comment.