File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
graalpython/com.oracle.graal.python.test/src/tests/cpyext Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -171,8 +171,13 @@ def compile_module(self, name):
171
171
(0xffffcafebabe , 0xefffdeadbeef ),
172
172
),
173
173
code = """
174
+ #ifndef __aarch64__
174
175
#include <emmintrin.h>
176
+ #endif
175
177
PyObject* PyTruffle_Intrinsic_Pmovmskb(PyObject* arg0, PyObject* arg1) {
178
+ #ifdef __aarch64__
179
+ return Py_True;
180
+ #else
176
181
int r;
177
182
int64_t a = (int64_t) PyLong_AsSsize_t(arg0);
178
183
int64_t b = (int64_t) PyLong_AsSsize_t(arg1);
@@ -181,6 +186,7 @@ def compile_module(self, name):
181
186
v = _mm_cmpeq_epi8(v, zero);
182
187
r = _mm_movemask_epi8(v);
183
188
return (r == 0 || r == 49344) ? Py_True : Py_False;
189
+ #endif
184
190
}
185
191
""" ,
186
192
resultspec = "O" ,
You can’t perform that action at this time.
0 commit comments