| 1 |
import py |
| 2 |
import sys |
| 3 |
import platform |
| 4 |
from pypy.module.pypyjit.test_pypy_c.test_00_model import BaseTestPyPyC |
| 5 |
from rpython.rlib.rawstorage import misaligned_is_fine |
| 6 |
|
| 7 |
IS_X86 = platform.machine().startswith('x86') or platform.machine() == 'i686' |
| 8 |
IS_S390X = platform.machine() == "s390x" |
| 9 |
IS_RISCV = platform.machine() == 'riscv64' |
| 10 |
|
| 11 |
def no_vector_backend(): |
| 12 |
if IS_X86: |
| 13 |
from rpython.jit.backend.x86.detect_feature import detect_sse4_2 |
| 14 |
if sys.maxsize < 2**31: |
| 15 |
return True |
| 16 |
return not detect_sse4_2() |
| 17 |
if platform.machine().startswith('ppc'): |
| 18 |
from rpython.jit.backend.ppc.detect_feature import detect_vsx |
| 19 |
return not detect_vsx() |
| 20 |
if platform.machine() == "s390x": |
| 21 |
from rpython.jit.backend.zarch.detect_feature import detect_simd_z |
| 22 |
return not detect_simd_z() |
| 23 |
return True |
| 24 |
|
| 25 |
def align_check(input): |
| 26 |
if IS_X86 or IS_S390X: |
| 27 |
return "" |
| 28 |
if sys.maxsize > 2**32: |
| 29 |
mask = 7 |
| 30 |
else: |
| 31 |
mask = 3 |
| 32 |
return """ |
| 33 |
i10096 = int_and(%s, %d) |
| 34 |
i10097 = int_is_zero(i10096) |
| 35 |
guard_true(i10097, descr=...) |
| 36 |
""" % (input, mask) |
| 37 |
|
| 38 |
|
| 39 |
@py.test.mark.skipif(True, reason='no _numpypy on pypy3') |
| 40 |
class TestMicroNumPy(BaseTestPyPyC): |
| 41 |
|
| 42 |
arith_comb = [('+','float','float', 4*3427, 3427, 1.0,3.0), |
| 43 |
('+','float','int', 9*7843, 7843, 4.0,5.0), |
| 44 |
('+','int','float', 8*2571, 2571, 9.0,-1.0), |
| 45 |
('+','float','int', -18*2653, 2653, 4.0,-22.0), |
| 46 |
('+','int','int', -1*1499, 1499, 24.0,-25.0), |
| 47 |
('-','float','float', -2*5523, 5523, 1.0,3.0), |
| 48 |
('*','float','float', 3*2999, 2999, 1.0,3.0), |
| 49 |
('/','float','float', 3*7632, 7632, 3.0,1.0), |
| 50 |
('/','float','float', 1.5*7632, 7632, 3.0,2.0), |
| 51 |
('&','int','int', 0, 1500, 1,0), |
| 52 |
('&','int','int', 1500, 1500, 1,1), |
| 53 |
('|','int','int', 1500, 1500, 0,1), |
| 54 |
('|','int','int', 0, 1500, 0,0), |
| 55 |
] |
| 56 |
type_permuated = [] |
| 57 |
types = { 'int': ['int32','int64','int8','int16'], |
| 58 |
'float': ['float32', 'float64'] |
| 59 |
} |
| 60 |
for arith in arith_comb: |
| 61 |
t1 = arith[1] |
| 62 |
t2 = arith[2] |
| 63 |
possible_t1 = types[t1] |
| 64 |
possible_t2 = types[t2] |
| 65 |
for ta in possible_t1: |
| 66 |
for tb in possible_t2: |
| 67 |
op, _, _, r, c, a, b = arith |
| 68 |
t = (op, ta, tb, r, c, a, b) |
| 69 |
type_permuated.append(t) |
| 70 |
|
| 71 |
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated) |
| 72 |
@py.test.mark.skipif('no_vector_backend()') |
| 73 |
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b): |
| 74 |
source = """ |
| 75 |
def main(): |
| 76 |
import _numpypy.multiarray as np |
| 77 |
a = np.array([{a}]*{count}, dtype='{adtype}') |
| 78 |
b = np.array([{b}]*{count}, dtype='{bdtype}') |
| 79 |
for i in range(20): |
| 80 |
c = a {op} b |
| 81 |
return c.sum() |
| 82 |
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b) |
| 83 |
exec py.code.Source(source).compile() |
| 84 |
vlog = self.run(main, [], vec=1) |
| 85 |
log = self.run(main, [], vec=0) |
| 86 |
assert log.result == vlog.result |
| 87 |
assert log.result == result |
| 88 |
assert log.jit_summary.vecopt_tried == 0 |
| 89 |
assert log.jit_summary.vecopt_success == 0 |
| 90 |
assert vlog.jit_summary.vecopt_tried > 0 |
| 91 |
if adtype in ('int64','float64') and bdtype in ('int64','float64'): |
| 92 |
assert vlog.jit_summary.vecopt_success > 0 |
| 93 |
else: |
| 94 |
assert vlog.jit_summary.vecopt_success >= 0 |
| 95 |
|
| 96 |
|
| 97 |
arith_comb = [ |
| 98 |
('sum','int', 1742, 1742, 1), |
| 99 |
('prod','int', 1, 3178, 1), |
| 100 |
('any','int', 1, 2239, 1), |
| 101 |
('any','int', 0, 4912, 0), |
| 102 |
('all','int', 0, 3420, 0), |
| 103 |
('all','int', 1, 6757, 1), |
| 104 |
] |
| 105 |
type_permuated = [] |
| 106 |
types = { 'int': ['int8','int16','int32','int64'], |
| 107 |
'float': ['float32','float64'] |
| 108 |
} |
| 109 |
for arith in arith_comb: |
| 110 |
t1 = arith[1] |
| 111 |
possible_t1 = types[t1] |
| 112 |
for ta in possible_t1: |
| 113 |
op, _, r, c, a = arith |
| 114 |
t = (op, ta, r, c, a) |
| 115 |
type_permuated.append(t) |
| 116 |
|
| 117 |
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated) |
| 118 |
@py.test.mark.skipif('no_vector_backend()') |
| 119 |
def test_reduce_generic(self,op,dtype,result,count,a): |
| 120 |
source = """ |
| 121 |
def main(): |
| 122 |
import _numpypy.multiarray as np |
| 123 |
a = np.array([{a}]*{count}, dtype='{dtype}') |
| 124 |
return a.{method}() |
| 125 |
""".format(method=op, dtype=dtype, count=count, a=a) |
| 126 |
exec py.code.Source(source).compile() |
| 127 |
log = self.run(main, [], vec=0) |
| 128 |
vlog = self.run(main, [], vec=1) |
| 129 |
assert log.result == vlog.result |
| 130 |
assert log.result == result |
| 131 |
if not log.jit_summary: |
| 132 |
return |
| 133 |
assert log.jit_summary.vecopt_tried == 0 |
| 134 |
assert log.jit_summary.vecopt_success == 0 |
| 135 |
assert vlog.jit_summary.vecopt_tried > 0 |
| 136 |
if dtype in ('int64','float64') and (dtype != 'int64' and op != 'prod'): |
| 137 |
assert vlog.jit_summary.vecopt_success > 0 |
| 138 |
else: |
| 139 |
assert vlog.jit_summary.vecopt_success >= 0 |
| 140 |
|
| 141 |
def test_reduce_logical_xor(self): |
| 142 |
def main(): |
| 143 |
import _numpypy.multiarray as np |
| 144 |
import _numpypy.umath as um |
| 145 |
arr = np.array([1.0] * 1500) |
| 146 |
return um.logical_xor.reduce(arr) |
| 147 |
log = self.run(main, []) |
| 148 |
assert log.result is False |
| 149 |
assert len(log.loops) == 1 |
| 150 |
loop = log._filter(log.loops[0]) |
| 151 |
if sys.byteorder == 'big': |
| 152 |
bit = ord('>') |
| 153 |
else: |
| 154 |
bit = ord('<') |
| 155 |
assert loop.match(""" |
| 156 |
guard_class(p1, #, descr=...) |
| 157 |
p4 = getfield_gc_r(p1, descr=<FieldP pypy.module.micronumpy.iterators.ArrayIter.inst_array \d+ pure>) |
| 158 |
i5 = getfield_gc_i(p0, descr=<FieldS pypy.module.micronumpy.iterators.IterState.inst_offset \d+>) |
| 159 |
guard_not_invalidated(descr=...) |
| 160 |
p6 = getfield_gc_r(p4, descr=<FieldP pypy.module.micronumpy.concrete.BaseConcreteArray.inst_dtype \d+ pure>) |
| 161 |
p7 = getfield_gc_r(p6, descr=<FieldP pypy.module.micronumpy.descriptor.W_Dtype.inst_itemtype \d+ pure>) |
| 162 |
guard_class(p7, ConstClass(Float64), descr=...) |
| 163 |
i9 = getfield_gc_i(p4, descr=<FieldU pypy.module.micronumpy.concrete.BaseConcreteArray.inst_storage \d+ pure>) |
| 164 |
i10 = getfield_gc_i(p6, descr=<FieldU pypy.module.micronumpy.descriptor.W_Dtype.inst_byteorder \d+ pure>) |
| 165 |
i12 = int_eq(i10, 61) |
| 166 |
i14 = int_eq(i10, %(bit)d) |
| 167 |
i15 = int_or(i12, i14) |
| 168 |
%(align_check)s |
| 169 |
f16 = raw_load_f(i9, i5, descr=<ArrayF \d+>) |
| 170 |
guard_true(i15, descr=...) |
| 171 |
i18 = float_ne(f16, 0.000000) |
| 172 |
guard_true(i18, descr=...) |
| 173 |
guard_nonnull_class(p2, ConstClass(W_BoolBox), descr=...) |
| 174 |
i20 = getfield_gc_i(p2, descr=<FieldU pypy.module.micronumpy.boxes.W_BoolBox.inst_value \d+ pure>) |
| 175 |
i21 = int_is_true(i20) |
| 176 |
guard_false(i21, descr=...) |
| 177 |
i22 = getfield_gc_i(p0, descr=<FieldS pypy.module.micronumpy.iterators.IterState.inst_index \d+>) |
| 178 |
i23 = getfield_gc_i(p1, descr=<FieldU pypy.module.micronumpy.iterators.ArrayIter.inst_track_index \d+ pure>) |
| 179 |
guard_true(i23, descr=...) |
| 180 |
i25 = int_add(i22, 1) |
| 181 |
p26 = getfield_gc_r(p0, descr=<FieldP pypy.module.micronumpy.iterators.IterState.inst__indices \d+ pure>) |
| 182 |
i27 = getfield_gc_i(p1, descr=<FieldS pypy.module.micronumpy.iterators.ArrayIter.inst_contiguous \d+ pure>) |
| 183 |
i28 = int_is_true(i27) |
| 184 |
guard_true(i28, descr=...) |
| 185 |
i29 = getfield_gc_i(p6, descr=<FieldS pypy.module.micronumpy.descriptor.W_Dtype.inst_elsize \d+ pure>) |
| 186 |
guard_value(i29, 8, descr=...) |
| 187 |
i30 = int_add(i5, 8) |
| 188 |
i31 = getfield_gc_i(p1, descr=<FieldS pypy.module.micronumpy.iterators.ArrayIter.inst_size \d+ pure>) |
| 189 |
i32 = int_ge(i25, i31) |
| 190 |
guard_false(i32, descr=...) |
| 191 |
p34 = new_with_vtable(descr=...) |
| 192 |
{{{ |
| 193 |
setfield_gc(p34, p1, descr=<FieldP pypy.module.micronumpy.iterators.IterState.inst_iterator \d+ pure>) |
| 194 |
setfield_gc(p34, i25, descr=<FieldS pypy.module.micronumpy.iterators.IterState.inst_index \d+>) |
| 195 |
setfield_gc(p34, p26, descr=<FieldP pypy.module.micronumpy.iterators.IterState.inst__indices \d+ pure>) |
| 196 |
setfield_gc(p34, i30, descr=<FieldS pypy.module.micronumpy.iterators.IterState.inst_offset \d+>) |
| 197 |
}}} |
| 198 |
jump(..., descr=...) |
| 199 |
""" % {'align_check': align_check('i5'), 'bit': bit}) |
| 200 |
|
| 201 |
def test_reduce_logical_and(self): |
| 202 |
def main(): |
| 203 |
import _numpypy.multiarray as np |
| 204 |
import _numpypy.umath as um |
| 205 |
arr = np.array([1.0] * 1500) |
| 206 |
return um.logical_and.reduce(arr) |
| 207 |
log = self.run(main, []) |
| 208 |
assert log.result is True |
| 209 |
assert len(log.loops) == 1 |
| 210 |
loop = log._filter(log.loops[0]) |
| 211 |
if IS_RISCV: |
| 212 |
|
| 213 |
|
| 214 |
loop.match(""" |
| 215 |
guard_not_invalidated(descr=...) |
| 216 |
%(align_check)s |
| 217 |
f31 = raw_load_f(i9, i29, descr=<ArrayF 8>) |
| 218 |
i32 = float_ne(f31, 0.000000) |
| 219 |
guard_true(i32, descr=...) |
| 220 |
i36 = int_add(i24, 1) |
| 221 |
i37 = int_add(i29, 8) |
| 222 |
i38 = int_ge(i36, i30) |
| 223 |
guard_false(i38, descr=...) |
| 224 |
jump(..., descr=...) |
| 225 |
""" % {'align_check': align_check('i29')}) |
| 226 |
else: |
| 227 |
loop.match(""" |
| 228 |
%(align_check)s |
| 229 |
guard_not_invalidated(descr=...) |
| 230 |
f31 = raw_load_f(i9, i29, descr=<ArrayF 8>) |
| 231 |
i32 = float_ne(f31, 0.000000) |
| 232 |
guard_true(i32, descr=...) |
| 233 |
i36 = int_add(i24, 1) |
| 234 |
i37 = int_add(i29, 8) |
| 235 |
i38 = int_ge(i36, i30) |
| 236 |
guard_false(i38, descr=...) |
| 237 |
jump(..., descr=...) |
| 238 |
""" % {'align_check': align_check('i29')}) |
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
|
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
|
| 247 |
|
| 248 |
|
| 249 |
|
| 250 |
|
| 251 |
|
| 252 |
|
| 253 |
def test_array_getitem_basic(self): |
| 254 |
def main(): |
| 255 |
import _numpypy.multiarray as np |
| 256 |
arr = np.zeros((300, 300)) |
| 257 |
x = 150 |
| 258 |
y = 0 |
| 259 |
while y < 300: |
| 260 |
a = arr[x, y] |
| 261 |
y += 1 |
| 262 |
return a |
| 263 |
log = self.run(main, []) |
| 264 |
assert log.result == 0 |
| 265 |
loop, = log.loops_by_filename(self.filepath) |
| 266 |
if misaligned_is_fine: |
| 267 |
alignment_check = "" |
| 268 |
else: |
| 269 |
alignment_check = """ |
| 270 |
i93 = int_and(i79, 7) |
| 271 |
i94 = int_is_zero(i93) |
| 272 |
guard_true(i94, descr=...) |
| 273 |
""" |
| 274 |
assert loop.match(""" |
| 275 |
i76 = int_lt(i71, 300) |
| 276 |
guard_true(i76, descr=...) |
| 277 |
guard_not_invalidated(descr=...) |
| 278 |
i77 = int_ge(i71, i59) |
| 279 |
guard_false(i77, descr=...) |
| 280 |
i78 = int_mul(i71, i61) |
| 281 |
i79 = int_add(i55, i78) |
| 282 |
""" + alignment_check + """ |
| 283 |
f80 = raw_load_f(i67, i79, descr=<ArrayF 8>) |
| 284 |
i81 = int_add(i71, 1) |
| 285 |
--TICK-- |
| 286 |
i92 = int_le(i33, _) |
| 287 |
guard_true(i92, descr=...) |
| 288 |
jump(..., descr=...) |
| 289 |
""") |
| 290 |
|
| 291 |
def test_array_getitem_accumulate(self): |
| 292 |
"""Check that operations/ufuncs on array items are jitted correctly""" |
| 293 |
def main(): |
| 294 |
import _numpypy.multiarray as np |
| 295 |
arr = np.zeros((300, 300)) |
| 296 |
a = 0.0 |
| 297 |
x = 150 |
| 298 |
y = 0 |
| 299 |
while y < 300: |
| 300 |
a += arr[x, y] |
| 301 |
y += 1 |
| 302 |
return a |
| 303 |
log = self.run(main, []) |
| 304 |
assert log.result == 0 |
| 305 |
loop, = log.loops_by_filename(self.filepath) |
| 306 |
if misaligned_is_fine: |
| 307 |
alignment_check = "" |
| 308 |
else: |
| 309 |
alignment_check = """ |
| 310 |
i97 = int_and(i84, 7) |
| 311 |
i98 = int_is_zero(i97) |
| 312 |
guard_true(i98, descr=...) |
| 313 |
""" |
| 314 |
assert loop.match(""" |
| 315 |
i81 = int_lt(i76, 300) |
| 316 |
guard_true(i81, descr=...) |
| 317 |
guard_not_invalidated(descr=...) |
| 318 |
i82 = int_ge(i76, i62) |
| 319 |
guard_false(i82, descr=...) |
| 320 |
i83 = int_mul(i76, i64) |
| 321 |
i84 = int_add(i58, i83) |
| 322 |
""" + alignment_check + """ |
| 323 |
f85 = raw_load_f(i70, i84, descr=<ArrayF 8>) |
| 324 |
f86 = float_add(f74, f85) |
| 325 |
i87 = int_add(i76, 1) |
| 326 |
--TICK-- |
| 327 |
i98 = int_le(i36, _) |
| 328 |
guard_true(i98, descr=...) |
| 329 |
jump(..., descr=...) |
| 330 |
""") |
| 331 |
|
| 332 |
def test_array_flatiter_next(self): |
| 333 |
def main(): |
| 334 |
import _numpypy.multiarray as np |
| 335 |
arr = np.zeros((1024, 16)) + 42 |
| 336 |
ai = arr.flat |
| 337 |
i = 0 |
| 338 |
while i < arr.size: |
| 339 |
a = next(ai) |
| 340 |
i += 1 |
| 341 |
return a |
| 342 |
log = self.run(main, []) |
| 343 |
assert log.result == 42.0 |
| 344 |
loop, = log.loops_by_filename(self.filepath) |
| 345 |
assert loop.match(""" |
| 346 |
guard_not_invalidated(descr=...) |
| 347 |
i86 = int_lt(i79, i45) |
| 348 |
guard_true(i86, descr=...) |
| 349 |
i88 = int_ge(i87, i59) |
| 350 |
guard_false(i88, descr=...) |
| 351 |
%(align_check)s |
| 352 |
f90 = raw_load_f(i67, i89, descr=<ArrayF 8>) |
| 353 |
i91 = int_add(i87, 1) |
| 354 |
i93 = int_add(i89, 8) |
| 355 |
i94 = int_add(i79, 1) |
| 356 |
i95 = getfield_raw_i(#, descr=<FieldS pypysig_long_struct_inner.c_value 0>) |
| 357 |
setfield_gc(p97, i91, descr=<FieldS pypy.module.micronumpy.iterators.IterState.inst_index .+>) |
| 358 |
setfield_gc(p97, i93, descr=<FieldS pypy.module.micronumpy.iterators.IterState.inst_offset .+>) |
| 359 |
i96 = int_lt(i95, 0) |
| 360 |
guard_false(i96, descr=...) |
| 361 |
jump(..., descr=...) |
| 362 |
""" % {"align_check": align_check('i89')}) |
| 363 |
|
| 364 |
def test_array_flatiter_getitem_single(self): |
| 365 |
def main(): |
| 366 |
import _numpypy.multiarray as np |
| 367 |
arr = np.zeros((1024, 16)) + 42 |
| 368 |
ai = arr.flat |
| 369 |
i = 0 |
| 370 |
while i < arr.size: |
| 371 |
a = ai[i] |
| 372 |
i += 1 |
| 373 |
return a |
| 374 |
log = self.run(main, []) |
| 375 |
assert log.result == 42.0 |
| 376 |
loop, = log.loops_by_filename(self.filepath) |
| 377 |
assert loop.match_by_id("getitem", """ |
| 378 |
i126 = int_lt(i117, i50) |
| 379 |
guard_true(i126, descr=...) |
| 380 |
i128 = int_mul(i117, i59) |
| 381 |
i129 = int_add(i55, i128) |
| 382 |
%(align_check)s |
| 383 |
f149 = raw_load_f(i100, i129, descr=<ArrayF 8>) |
| 384 |
""" % {'align_check': align_check('i129')}) |
| 385 |
|
| 386 |
def test_array_flatiter_setitem_single(self): |
| 387 |
def main(): |
| 388 |
import _numpypy.multiarray as np |
| 389 |
arr = np.empty((1024, 16)) |
| 390 |
ai = arr.flat |
| 391 |
i = 0 |
| 392 |
while i < arr.size: |
| 393 |
ai[i] = 42.0 |
| 394 |
i += 1 |
| 395 |
return ai[-1] |
| 396 |
log = self.run(main, []) |
| 397 |
assert log.result == 42.0 |
| 398 |
loop, = log.loops_by_filename(self.filepath) |
| 399 |
assert loop.match(""" |
| 400 |
guard_not_invalidated(descr=...) |
| 401 |
i128 = int_lt(i120, i42) |
| 402 |
guard_true(i128, descr=...) |
| 403 |
i129 = int_lt(i120, i48) |
| 404 |
guard_true(i129, descr=...) |
| 405 |
i131 = int_mul(i120, i57) |
| 406 |
i132 = int_add(i53, i131) |
| 407 |
%(align_check)s |
| 408 |
raw_store(i103, i132, 42.000000, descr=<ArrayF 8>) |
| 409 |
i153 = int_add(i120, 1) |
| 410 |
i154 = getfield_raw_i(#, descr=<FieldS pypysig_long_struct_inner.c_value 0>) |
| 411 |
setfield_gc(p158, i53, descr=<FieldS pypy.module.micronumpy.iterators.IterState.inst_offset .+>) |
| 412 |
setarrayitem_gc(p152, 1, 0, descr=<ArrayS .+>) |
| 413 |
setarrayitem_gc(p152, 0, 0, descr=<ArrayS .+>) |
| 414 |
i157 = int_lt(i154, 0) |
| 415 |
guard_false(i157, descr=...) |
| 416 |
i158 = arraylen_gc(p152, descr=.*) |
| 417 |
jump(..., descr=...) |
| 418 |
""" % {'align_check': align_check('i132')}) |
| 419 |
|
| 420 |
def test_mixed_div(self): |
| 421 |
N = 1500 |
| 422 |
def main(): |
| 423 |
N = 1500 |
| 424 |
import _numpypy.multiarray as np |
| 425 |
arr = np.zeros(N) |
| 426 |
l = [arr[i]/2. for i in range(N)] |
| 427 |
return l |
| 428 |
log = self.run(main, []) |
| 429 |
assert log.result == [0.] * N |
| 430 |
loop, = log.loops_by_filename(self.filepath) |
| 431 |
assert loop.match(""" |
| 432 |
i4 = int_lt(i91, 0) |
| 433 |
guard_false(i4, descr=...) |
| 434 |
i92 = int_ge(i91, i37) |
| 435 |
guard_false(i92, descr=...) |
| 436 |
i93 = int_add(i91, 1) |
| 437 |
setfield_gc(p23, i93, descr=<FieldS pypy.objspace.std.iterobject.W_AbstractSeqIterObject.inst_index 8>) |
| 438 |
guard_not_invalidated(descr=...) |
| 439 |
i94 = int_ge(i91, i56) |
| 440 |
guard_false(i94, descr=...) |
| 441 |
i96 = int_mul(i91, i58) |
| 442 |
i97 = int_add(i51, i96) |
| 443 |
%(align_check)s |
| 444 |
f98 = raw_load_f(i63, i97, descr=<ArrayF 8>) |
| 445 |
f100 = float_mul(f98, 0.500000) |
| 446 |
i101 = int_add(i79, 1) |
| 447 |
i102 = arraylen_gc(p85, descr=<ArrayP .>) |
| 448 |
i103 = int_lt(i102, i101) |
| 449 |
cond_call(i103, ConstClass(_ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool), p76, i101, 1, descr=<Callv 0 rii EF=5>) |
| 450 |
guard_no_exception(descr=...) |
| 451 |
p104 = getfield_gc_r(p76, descr=<FieldP list.items .*>) |
| 452 |
p105 = new_with_vtable(descr=<SizeDescr .*>) |
| 453 |
setfield_gc(p105, f100, descr=<FieldF pypy.module.micronumpy.boxes.W_Float64Box.inst_value .*>) |
| 454 |
setarrayitem_gc(p104, i79, p105, descr=<ArrayP .>) |
| 455 |
i106 = getfield_raw_i(#, descr=<FieldS pypysig_long_struct_inner.c_value 0>) |
| 456 |
setfield_gc(p76, i101, descr=<FieldS list.length .*>) |
| 457 |
i107 = int_lt(i106, 0) |
| 458 |
guard_false(i107, descr=...) |
| 459 |
i158 = arraylen_gc(p104, descr=.*) |
| 460 |
jump(..., descr=...) |
| 461 |
""" % {'align_check': align_check('i97')}) |