Author: Armin Rigo <[email protected]>
Branch:
Changeset: r90799:23fd2966aada
Date: 2017-03-23 19:50 +0100
http://bitbucket.org/pypy/pypy/changeset/23fd2966aada/
Log: Issue #2512: translate with x86-without-sse2
diff --git a/rpython/jit/backend/x86/vector_ext.py
b/rpython/jit/backend/x86/vector_ext.py
--- a/rpython/jit/backend/x86/vector_ext.py
+++ b/rpython/jit/backend/x86/vector_ext.py
@@ -60,6 +60,7 @@
class VectorAssemblerMixin(object):
_mixin_ = True
+ element_ones = [] # overridden in assembler.py
def setup_once_vector(self):
pass
@@ -342,6 +343,7 @@
else:
assert lhsloc is xmm0
maskloc = X86_64_XMM_SCRATCH_REG
+ assert len(self.element_ones) > 0
self.mc.MOVAPD(maskloc, heap(self.element_ones[get_scale(size)]))
self.mc.PXOR(resloc, resloc)
# note that resloc contains true false for each element by the
last compare operation
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit