Skip to content
Snippets Groups Projects
Commit e18eb7d0 authored by Markus Holzer's avatar Markus Holzer
Browse files

testing

parent 28c6d334
No related branches found
No related tags found
No related merge requests found
Pipeline #43414 failed
...@@ -321,7 +321,10 @@ def insert_vector_casts(ast_node, instruction_set, default_float_type='double'): ...@@ -321,7 +321,10 @@ def insert_vector_casts(ast_node, instruction_set, default_float_type='double'):
return sp.Piecewise(*[(r, c) for r, c in zip(casted_results, casted_conditions)]) return sp.Piecewise(*[(r, c) for r, c in zip(casted_results, casted_conditions)])
elif isinstance(expr, TypedSymbol): elif isinstance(expr, TypedSymbol):
return CastFunc(expr, VectorType(expr.dtype, instruction_set['width'])) if isinstance(expr.dtype, BasicType):
return CastFunc(expr, VectorType(expr.dtype, instruction_set['width']))
else:
return expr
elif isinstance(expr, (sp.Number, BooleanAtom)): elif isinstance(expr, (sp.Number, BooleanAtom)):
return expr return expr
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment