From 6ce87fd9428354804fd0bd60906e8e199f0cb5d1 Mon Sep 17 00:00:00 2001
From: Frederik Hennig <frederik.hennig@fau.de>
Date: Thu, 7 Nov 2024 09:07:48 +0100
Subject: [PATCH] Fixed small bug in cloning of PsVecMemAcc.

---
 src/pystencils/backend/ast/vector.py    | 1 -
 src/pystencils/backend/platforms/x86.py | 5 +++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/pystencils/backend/ast/vector.py b/src/pystencils/backend/ast/vector.py
index 84875c604..705d25094 100644
--- a/src/pystencils/backend/ast/vector.py
+++ b/src/pystencils/backend/ast/vector.py
@@ -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
         )
     
diff --git a/src/pystencils/backend/platforms/x86.py b/src/pystencils/backend/platforms/x86.py
index 166b15f4d..aaa8b351b 100644
--- a/src/pystencils/backend/platforms/x86.py
+++ b/src/pystencils/backend/platforms/x86.py
@@ -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]
-- 
GitLab