Skip to content

Commit a912a44

Browse files
committed
test_misc: do not use sse2 intrinsics on aarch64
1 parent 08a3935 commit a912a44

File tree

1 file changed

+6
-0
lines changed
  • graalpython/com.oracle.graal.python.test/src/tests/cpyext

1 file changed

+6
-0
lines changed

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_misc.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,13 @@ def compile_module(self, name):
171171
(0xffffcafebabe, 0xefffdeadbeef),
172172
),
173173
code="""
174+
#ifndef __aarch64__
174175
#include <emmintrin.h>
176+
#endif
175177
PyObject* PyTruffle_Intrinsic_Pmovmskb(PyObject* arg0, PyObject* arg1) {
178+
#ifdef __aarch64__
179+
return Py_True;
180+
#else
176181
int r;
177182
int64_t a = (int64_t) PyLong_AsSsize_t(arg0);
178183
int64_t b = (int64_t) PyLong_AsSsize_t(arg1);
@@ -181,6 +186,7 @@ def compile_module(self, name):
181186
v = _mm_cmpeq_epi8(v, zero);
182187
r = _mm_movemask_epi8(v);
183188
return (r == 0 || r == 49344) ? Py_True : Py_False;
189+
#endif
184190
}
185191
""",
186192
resultspec="O",

0 commit comments

Comments
 (0)