Skip to content
Snippets Groups Projects
Commit 6ce87fd9 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

Fixed small bug in cloning of PsVecMemAcc.

parent 6c7492ee
No related branches found
No related tags found
1 merge request!424Vectorization: Infrastructure and Base Implementation for x86
Pipeline #70092 passed
......@@ -136,7 +136,6 @@ class PsVecMemAcc(PsExpression, PsLvalue, PsVectorOp):
return (
super().structurally_equal(other)
and self._vector_entries == other._vector_entries
and self._stride == other._stride
and self._aligned == other._aligned
)
......
......@@ -140,10 +140,11 @@ class X86VectorCpu(GenericVectorCpu):
prefix = self._vector_arch.intrin_prefix(vtype)
suffix = self._vector_arch.intrin_suffix(vtype)
x_suffix = "x" if stype == SInt(64) and vtype.vector_entries <= 4 else ""
if stype == SInt(64) and vtype.vector_entries <= 4:
suffix += "x"
set_func = CFunction(
f"{prefix}_set_{suffix}{x_suffix}", (stype,) * vtype.vector_entries, vtype
f"{prefix}_set_{suffix}", (stype,) * vtype.vector_entries, vtype
)
values = [PsConstantExpr(PsConstant(v, stype)) for v in c.value]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment