Lines Matching +full:- +full:out
7 // http://www.apache.org/licenses/LICENSE-2.0
23 int x = p[-1]; in reference()
28 z += (2 << i) - (i / 3); in reference()
44 Int x = p[-1]; in TEST()
50 z += (2 << i) - (i / 3); in TEST()
66 int (*callable)(int*, int) = (int(*)(int*,int))routine->getEntry(); in TEST()
104 int (*callable)() = (int(*)())routine->getEntry(); in TEST()
121 Pointer<Byte> out = function.Arg<1>(); in TEST() local
123 *Pointer<Int4>(out + 16 * 0) = *Pointer<Int4>(in + 16 * 0); in TEST()
124 *Pointer<Short4>(out + 16 * 1) = *Pointer<Short4>(in + 16 * 1); in TEST()
125 *Pointer<Byte8>(out + 16 * 2) = *Pointer<Byte8>(in + 16 * 2); in TEST()
126 *Pointer<Byte4>(out + 16 * 3) = *Pointer<Byte4>(in + 16 * 3); in TEST()
127 *Pointer<Short2>(out + 16 * 4) = *Pointer<Short2>(in + 16 * 4); in TEST()
142 int8_t out[16 * 5] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in TEST() local
143 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in TEST()
144 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in TEST()
145 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in TEST()
146 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; in TEST()
148 int (*callable)(void*, void*) = (int(*)(void*,void*))routine->getEntry(); in TEST()
149 callable(in, out); in TEST()
159 EXPECT_EQ(out[i], -1) << "Row " << row << " column " << col << " not left untouched."; in TEST()
163 EXPECT_EQ(out[i], in[i]) << "Row " << row << " column " << col << " not equal to input."; in TEST()
180 Pointer<Byte> out = function.Arg<0>(); in TEST() local
182 *Pointer<Int4>(out + 16 * 0) = Int4(0x04030201, 0x08070605, 0x0C0B0A09, 0x100F0E0D); in TEST()
183 *Pointer<Short4>(out + 16 * 1) = Short4(0x1211, 0x1413, 0x1615, 0x1817); in TEST()
184 *Pointer<Byte8>(out + 16 * 2) = Byte8(0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20); in TEST()
185 *Pointer<Int2>(out + 16 * 3) = Int2(0x24232221, 0x28272625); in TEST()
194 int8_t out[16 * 4] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in TEST() local
195 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in TEST()
196 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in TEST()
197 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; in TEST()
200 17, 18, 19, 20, 21, 22, 23, 24, -1, -1, -1, -1, -1, -1, -1, -1, in TEST()
201 25, 26, 27, 28, 29, 30, 31, 32, -1, -1, -1, -1, -1, -1, -1, -1, in TEST()
202 33, 34, 35, 36, 37, 38, 39, 40, -1, -1, -1, -1, -1, -1, -1, -1}; in TEST()
204 int(*callable)(void*) = (int(*)(void*))routine->getEntry(); in TEST()
205 callable(out); in TEST()
213 EXPECT_EQ(out[i], exp[i]); in TEST()
229 Pointer<Byte> out = function.Arg<0>(); in TEST() local
231 … *Pointer<Int4>(out + 16 * 0) = Int4(Int2(0x04030201, 0x08070605), Int2(0x0C0B0A09, 0x100F0E0D)); in TEST()
232 …*Pointer<Short8>(out + 16 * 1) = Short8(Short4(0x0201, 0x0403, 0x0605, 0x0807), Short4(0x0A09, 0x0… in TEST()
244 int8_t out[16 * 5] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in TEST() local
245 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; in TEST()
247 int (*callable)(void*) = (int(*)(void*))routine->getEntry(); in TEST()
248 callable(out); in TEST()
256 EXPECT_EQ(out[i], ref[i]) << "Row " << row << " column " << col << " not equal to reference."; in TEST()
272 Pointer<Byte> out = function.Arg<0>(); in TEST() local
276 *Pointer<Float4>(out + 16 * i) = Swizzle(Float4(1.0f, 2.0f, 3.0f, 4.0f), i); in TEST()
281 …*Pointer<Float4>(out + 16 * (256 + i)) = ShuffleLowHigh(Float4(1.0f, 2.0f, 3.0f, 4.0f), Float4(5.0… in TEST()
284 …*Pointer<Float4>(out + 16 * (512 + 0)) = UnpackLow(Float4(1.0f, 2.0f, 3.0f, 4.0f), Float4(5.0f, 6.… in TEST()
285 …*Pointer<Float4>(out + 16 * (512 + 1)) = UnpackHigh(Float4(1.0f, 2.0f, 3.0f, 4.0f), Float4(5.0f, 6… in TEST()
286 *Pointer<Int2>(out + 16 * (512 + 2)) = UnpackLow(Short4(1, 2, 3, 4), Short4(5, 6, 7, 8)); in TEST()
287 *Pointer<Int2>(out + 16 * (512 + 3)) = UnpackHigh(Short4(1, 2, 3, 4), Short4(5, 6, 7, 8)); in TEST()
288 …*Pointer<Short4>(out + 16 * (512 + 4)) = UnpackLow(Byte8(1, 2, 3, 4, 5, 6, 7, 8), Byte8(9, 10, 11,… in TEST()
289 …*Pointer<Short4>(out + 16 * (512 + 5)) = UnpackHigh(Byte8(1, 2, 3, 4, 5, 6, 7, 8), Byte8(9, 10, 11… in TEST()
293 *Pointer<Short4>(out + 16 * (512 + 6) + (8 * i)) = in TEST()
299 *Pointer<Int4>(out + 16 * (512 + 6 + i) + (8 * 256)) = in TEST()
314 } out; in TEST() local
316 memset(&out, 0, sizeof(out)); in TEST()
318 int(*callable)(void*) = (int(*)(void*))routine->getEntry(); in TEST()
319 callable(&out); in TEST()
323 EXPECT_EQ(out.f[i][0], float((i >> 0) & 0x03) + 1.0f); in TEST()
324 EXPECT_EQ(out.f[i][1], float((i >> 2) & 0x03) + 1.0f); in TEST()
325 EXPECT_EQ(out.f[i][2], float((i >> 4) & 0x03) + 1.0f); in TEST()
326 EXPECT_EQ(out.f[i][3], float((i >> 6) & 0x03) + 1.0f); in TEST()
331 EXPECT_EQ(out.f[256 + i][0], float((i >> 0) & 0x03) + 1.0f); in TEST()
332 EXPECT_EQ(out.f[256 + i][1], float((i >> 2) & 0x03) + 1.0f); in TEST()
333 EXPECT_EQ(out.f[256 + i][2], float((i >> 4) & 0x03) + 5.0f); in TEST()
334 EXPECT_EQ(out.f[256 + i][3], float((i >> 6) & 0x03) + 5.0f); in TEST()
337 EXPECT_EQ(out.f[512 + 0][0], 1.0f); in TEST()
338 EXPECT_EQ(out.f[512 + 0][1], 5.0f); in TEST()
339 EXPECT_EQ(out.f[512 + 0][2], 2.0f); in TEST()
340 EXPECT_EQ(out.f[512 + 0][3], 6.0f); in TEST()
342 EXPECT_EQ(out.f[512 + 1][0], 3.0f); in TEST()
343 EXPECT_EQ(out.f[512 + 1][1], 7.0f); in TEST()
344 EXPECT_EQ(out.f[512 + 1][2], 4.0f); in TEST()
345 EXPECT_EQ(out.f[512 + 1][3], 8.0f); in TEST()
347 EXPECT_EQ(out.i[0][0], 0x00050001); in TEST()
348 EXPECT_EQ(out.i[0][1], 0x00060002); in TEST()
349 EXPECT_EQ(out.i[0][2], 0x00000000); in TEST()
350 EXPECT_EQ(out.i[0][3], 0x00000000); in TEST()
352 EXPECT_EQ(out.i[1][0], 0x00070003); in TEST()
353 EXPECT_EQ(out.i[1][1], 0x00080004); in TEST()
354 EXPECT_EQ(out.i[1][2], 0x00000000); in TEST()
355 EXPECT_EQ(out.i[1][3], 0x00000000); in TEST()
357 EXPECT_EQ(out.i[2][0], 0x0A020901); in TEST()
358 EXPECT_EQ(out.i[2][1], 0x0C040B03); in TEST()
359 EXPECT_EQ(out.i[2][2], 0x00000000); in TEST()
360 EXPECT_EQ(out.i[2][3], 0x00000000); in TEST()
362 EXPECT_EQ(out.i[3][0], 0x0E060D05); in TEST()
363 EXPECT_EQ(out.i[3][1], 0x10080F07); in TEST()
364 EXPECT_EQ(out.i[3][2], 0x00000000); in TEST()
365 EXPECT_EQ(out.i[3][3], 0x00000000); in TEST()
369 EXPECT_EQ(out.i[4 + i/2][0 + (i%2) * 2] & 0xFFFF, in TEST()
371 EXPECT_EQ(out.i[4 + i/2][0 + (i%2) * 2] >> 16, in TEST()
373 EXPECT_EQ(out.i[4 + i/2][1 + (i%2) * 2] & 0xFFFF, in TEST()
375 EXPECT_EQ(out.i[4 + i/2][1 + (i%2) * 2] >> 16, in TEST()
381 EXPECT_EQ(out.i[132 + i][0], ((i >> 0) & 0x03) + 1); in TEST()
382 EXPECT_EQ(out.i[132 + i][1], ((i >> 2) & 0x03) + 1); in TEST()
383 EXPECT_EQ(out.i[132 + i][2], ((i >> 4) & 0x03) + 1); in TEST()
384 EXPECT_EQ(out.i[132 + i][3], ((i >> 6) & 0x03) + 1); in TEST()
438 x = -5; in TEST()
447 int(*callable)() = (int(*)())routine->getEntry(); in TEST()
464 Pointer<Byte> out = function.Arg<0>(); in TEST() local
466 …*Pointer<Float4>(out + 16 * 0) = Min(Float4(1.0f, 0.0f, -0.0f, +0.0f), Float4(0.0f, 1.0f, +0.0f, -… in TEST()
467 …*Pointer<Float4>(out + 16 * 1) = Max(Float4(1.0f, 0.0f, -0.0f, +0.0f), Float4(0.0f, 1.0f, +0.0f, -… in TEST()
469 *Pointer<Int4>(out + 16 * 2) = Min(Int4(1, 0, -1, -0), Int4(0, 1, 0, +0)); in TEST()
470 *Pointer<Int4>(out + 16 * 3) = Max(Int4(1, 0, -1, -0), Int4(0, 1, 0, +0)); in TEST()
471 *Pointer<UInt4>(out + 16 * 4) = Min(UInt4(1, 0, -1, -0), UInt4(0, 1, 0, +0)); in TEST()
472 *Pointer<UInt4>(out + 16 * 5) = Max(UInt4(1, 0, -1, -0), UInt4(0, 1, 0, +0)); in TEST()
474 *Pointer<Short4>(out + 16 * 6) = Min(Short4(1, 0, -1, -0), Short4(0, 1, 0, +0)); in TEST()
475 *Pointer<Short4>(out + 16 * 7) = Max(Short4(1, 0, -1, -0), Short4(0, 1, 0, +0)); in TEST()
476 *Pointer<UShort4>(out + 16 * 8) = Min(UShort4(1, 0, -1, -0), UShort4(0, 1, 0, +0)); in TEST()
477 *Pointer<UShort4>(out + 16 * 9) = Max(UShort4(1, 0, -1, -0), UShort4(0, 1, 0, +0)); in TEST()
486 unsigned int out[10][4]; in TEST() local
488 memset(&out, 0, sizeof(out)); in TEST()
490 int(*callable)(void*) = (int(*)(void*))routine->getEntry(); in TEST()
491 callable(&out); in TEST()
493 EXPECT_EQ(out[0][0], 0x00000000u); in TEST()
494 EXPECT_EQ(out[0][1], 0x00000000u); in TEST()
495 EXPECT_EQ(out[0][2], 0x00000000u); in TEST()
496 EXPECT_EQ(out[0][3], 0x80000000u); in TEST()
498 EXPECT_EQ(out[1][0], 0x3F800000u); in TEST()
499 EXPECT_EQ(out[1][1], 0x3F800000u); in TEST()
500 EXPECT_EQ(out[1][2], 0x00000000u); in TEST()
501 EXPECT_EQ(out[1][3], 0x80000000u); in TEST()
503 EXPECT_EQ(out[2][0], 0x00000000u); in TEST()
504 EXPECT_EQ(out[2][1], 0x00000000u); in TEST()
505 EXPECT_EQ(out[2][2], 0xFFFFFFFFu); in TEST()
506 EXPECT_EQ(out[2][3], 0x00000000u); in TEST()
508 EXPECT_EQ(out[3][0], 0x00000001u); in TEST()
509 EXPECT_EQ(out[3][1], 0x00000001u); in TEST()
510 EXPECT_EQ(out[3][2], 0x00000000u); in TEST()
511 EXPECT_EQ(out[3][3], 0x00000000u); in TEST()
513 EXPECT_EQ(out[4][0], 0x00000000u); in TEST()
514 EXPECT_EQ(out[4][1], 0x00000000u); in TEST()
515 EXPECT_EQ(out[4][2], 0x00000000u); in TEST()
516 EXPECT_EQ(out[4][3], 0x00000000u); in TEST()
518 EXPECT_EQ(out[5][0], 0x00000001u); in TEST()
519 EXPECT_EQ(out[5][1], 0x00000001u); in TEST()
520 EXPECT_EQ(out[5][2], 0xFFFFFFFFu); in TEST()
521 EXPECT_EQ(out[5][3], 0x00000000u); in TEST()
523 EXPECT_EQ(out[6][0], 0x00000000u); in TEST()
524 EXPECT_EQ(out[6][1], 0x0000FFFFu); in TEST()
525 EXPECT_EQ(out[6][2], 0x00000000u); in TEST()
526 EXPECT_EQ(out[6][3], 0x00000000u); in TEST()
528 EXPECT_EQ(out[7][0], 0x00010001u); in TEST()
529 EXPECT_EQ(out[7][1], 0x00000000u); in TEST()
530 EXPECT_EQ(out[7][2], 0x00000000u); in TEST()
531 EXPECT_EQ(out[7][3], 0x00000000u); in TEST()
533 EXPECT_EQ(out[8][0], 0x00000000u); in TEST()
534 EXPECT_EQ(out[8][1], 0x00000000u); in TEST()
535 EXPECT_EQ(out[8][2], 0x00000000u); in TEST()
536 EXPECT_EQ(out[8][3], 0x00000000u); in TEST()
538 EXPECT_EQ(out[9][0], 0x00010001u); in TEST()
539 EXPECT_EQ(out[9][1], 0x0000FFFFu); in TEST()
540 EXPECT_EQ(out[9][2], 0x00000000u); in TEST()
541 EXPECT_EQ(out[9][3], 0x00000000u); in TEST()
555 Pointer<Byte> out = function.Arg<0>(); in TEST() local
557 *Pointer<Int>(out + 16 * 0) = ~Int(0x55555555); in TEST()
558 *Pointer<Short>(out + 16 * 1) = ~Short(0x5555); in TEST()
559 *Pointer<Int4>(out + 16 * 2) = ~Int4(0x55555555, 0xAAAAAAAA, 0x00000000, 0xFFFFFFFF); in TEST()
560 *Pointer<Short4>(out + 16 * 3) = ~Short4(0x5555, 0xAAAA, 0x0000, 0xFFFF); in TEST()
562 *Pointer<Int>(out + 16 * 4) = -Int(0x55555555); in TEST()
563 *Pointer<Short>(out + 16 * 5) = -Short(0x5555); in TEST()
564 *Pointer<Int4>(out + 16 * 6) = -Int4(0x55555555, 0xAAAAAAAA, 0x00000000, 0xFFFFFFFF); in TEST()
565 *Pointer<Short4>(out + 16 * 7) = -Short4(0x5555, 0xAAAA, 0x0000, 0xFFFF); in TEST()
567 *Pointer<Float4>(out + 16 * 8) = -Float4(1.0f, -1.0f, 0.0f, -0.0f); in TEST()
576 unsigned int out[10][4]; in TEST() local
578 memset(&out, 0, sizeof(out)); in TEST()
580 int(*callable)(void*) = (int(*)(void*))routine->getEntry(); in TEST()
581 callable(&out); in TEST()
583 EXPECT_EQ(out[0][0], 0xAAAAAAAAu); in TEST()
584 EXPECT_EQ(out[0][1], 0x00000000u); in TEST()
585 EXPECT_EQ(out[0][2], 0x00000000u); in TEST()
586 EXPECT_EQ(out[0][3], 0x00000000u); in TEST()
588 EXPECT_EQ(out[1][0], 0x0000AAAAu); in TEST()
589 EXPECT_EQ(out[1][1], 0x00000000u); in TEST()
590 EXPECT_EQ(out[1][2], 0x00000000u); in TEST()
591 EXPECT_EQ(out[1][3], 0x00000000u); in TEST()
593 EXPECT_EQ(out[2][0], 0xAAAAAAAAu); in TEST()
594 EXPECT_EQ(out[2][1], 0x55555555u); in TEST()
595 EXPECT_EQ(out[2][2], 0xFFFFFFFFu); in TEST()
596 EXPECT_EQ(out[2][3], 0x00000000u); in TEST()
598 EXPECT_EQ(out[3][0], 0x5555AAAAu); in TEST()
599 EXPECT_EQ(out[3][1], 0x0000FFFFu); in TEST()
600 EXPECT_EQ(out[3][2], 0x00000000u); in TEST()
601 EXPECT_EQ(out[3][3], 0x00000000u); in TEST()
603 EXPECT_EQ(out[4][0], 0xAAAAAAABu); in TEST()
604 EXPECT_EQ(out[4][1], 0x00000000u); in TEST()
605 EXPECT_EQ(out[4][2], 0x00000000u); in TEST()
606 EXPECT_EQ(out[4][3], 0x00000000u); in TEST()
608 EXPECT_EQ(out[5][0], 0x0000AAABu); in TEST()
609 EXPECT_EQ(out[5][1], 0x00000000u); in TEST()
610 EXPECT_EQ(out[5][2], 0x00000000u); in TEST()
611 EXPECT_EQ(out[5][3], 0x00000000u); in TEST()
613 EXPECT_EQ(out[6][0], 0xAAAAAAABu); in TEST()
614 EXPECT_EQ(out[6][1], 0x55555556u); in TEST()
615 EXPECT_EQ(out[6][2], 0x00000000u); in TEST()
616 EXPECT_EQ(out[6][3], 0x00000001u); in TEST()
618 EXPECT_EQ(out[7][0], 0x5556AAABu); in TEST()
619 EXPECT_EQ(out[7][1], 0x00010000u); in TEST()
620 EXPECT_EQ(out[7][2], 0x00000000u); in TEST()
621 EXPECT_EQ(out[7][3], 0x00000000u); in TEST()
623 EXPECT_EQ(out[8][0], 0xBF800000u); in TEST()
624 EXPECT_EQ(out[8][1], 0x3F800000u); in TEST()
625 EXPECT_EQ(out[8][2], 0x80000000u); in TEST()
626 EXPECT_EQ(out[8][3], 0x00000000u); in TEST()
640 Pointer<Byte> out = function.Arg<0>(); in TEST() local
642 …*Pointer<Int4>(out + 16 * 0) = CmpEQ(Float4(1.0f, 1.0f, -0.0f, +0.0f), Float4(0.0f, 1.0f, +0.0f, -… in TEST()
643 *Pointer<Int4>(out + 16 * 1) = CmpEQ(Int4(1, 0, -1, -0), Int4(0, 1, 0, +0)); in TEST()
644 …*Pointer<Byte8>(out + 16 * 2) = CmpEQ(SByte8(1, 2, 3, 4, 5, 6, 7, 8), SByte8(7, 6, 5, 4, 3, 2, 1, … in TEST()
646 …*Pointer<Int4>(out + 16 * 3) = CmpNLT(Float4(1.0f, 1.0f, -0.0f, +0.0f), Float4(0.0f, 1.0f, +0.0f, … in TEST()
647 *Pointer<Int4>(out + 16 * 4) = CmpNLT(Int4(1, 0, -1, -0), Int4(0, 1, 0, +0)); in TEST()
648 …*Pointer<Byte8>(out + 16 * 5) = CmpGT(SByte8(1, 2, 3, 4, 5, 6, 7, 8), SByte8(7, 6, 5, 4, 3, 2, 1, … in TEST()
657 unsigned int out[6][4]; in TEST() local
659 memset(&out, 0, sizeof(out)); in TEST()
661 int(*callable)(void*) = (int(*)(void*))routine->getEntry(); in TEST()
662 callable(&out); in TEST()
664 EXPECT_EQ(out[0][0], 0x00000000u); in TEST()
665 EXPECT_EQ(out[0][1], 0xFFFFFFFFu); in TEST()
666 EXPECT_EQ(out[0][2], 0xFFFFFFFFu); in TEST()
667 EXPECT_EQ(out[0][3], 0xFFFFFFFFu); in TEST()
669 EXPECT_EQ(out[1][0], 0x00000000u); in TEST()
670 EXPECT_EQ(out[1][1], 0x00000000u); in TEST()
671 EXPECT_EQ(out[1][2], 0x00000000u); in TEST()
672 EXPECT_EQ(out[1][3], 0xFFFFFFFFu); in TEST()
674 EXPECT_EQ(out[2][0], 0xFF000000u); in TEST()
675 EXPECT_EQ(out[2][1], 0x00000000u); in TEST()
677 EXPECT_EQ(out[3][0], 0xFFFFFFFFu); in TEST()
678 EXPECT_EQ(out[3][1], 0xFFFFFFFFu); in TEST()
679 EXPECT_EQ(out[3][2], 0xFFFFFFFFu); in TEST()
680 EXPECT_EQ(out[3][3], 0xFFFFFFFFu); in TEST()
682 EXPECT_EQ(out[4][0], 0xFFFFFFFFu); in TEST()
683 EXPECT_EQ(out[4][1], 0x00000000u); in TEST()
684 EXPECT_EQ(out[4][2], 0x00000000u); in TEST()
685 EXPECT_EQ(out[4][3], 0xFFFFFFFFu); in TEST()
687 EXPECT_EQ(out[5][0], 0x00000000u); in TEST()
688 EXPECT_EQ(out[5][1], 0xFFFFFFFFu); in TEST()
702 Pointer<Byte> out = function.Arg<0>(); in TEST() local
704 *Pointer<Byte8>(out + 8 * 0) = in TEST()
707 *Pointer<Byte8>(out + 8 * 1) = in TEST()
710 *Pointer<Byte8>(out + 8 * 2) = in TEST()
714 *Pointer<SByte8>(out + 8 * 3) = in TEST()
717 *Pointer<SByte8>(out + 8 * 4) = in TEST()
720 *Pointer<SByte8>(out + 8 * 5) = in TEST()
722 SByte8(-7, -6, -5, -4, -3, -2, -1, -0)); in TEST()
723 *Pointer<SByte8>(out + 8 * 6) = in TEST()
727 *Pointer<Short4>(out + 8 * 7) = in TEST()
729 *Pointer<Short4>(out + 8 * 8) = in TEST()
732 *Pointer<Short4>(out + 8 * 9) = in TEST()
734 Short4(-3, -2, -1, -0)); in TEST()
735 *Pointer<Short4>(out + 8 * 10) = in TEST()
739 *Pointer<UShort4>(out + 8 * 11) = in TEST()
741 *Pointer<UShort4>(out + 8 * 12) = in TEST()
744 *Pointer<UShort4>(out + 8 * 13) = in TEST()
754 unsigned int out[14][2]; in TEST() local
756 memset(&out, 0, sizeof(out)); in TEST()
758 int(*callable)(void*) = (int(*)(void*))routine->getEntry(); in TEST()
759 callable(&out); in TEST()
761 EXPECT_EQ(out[0][0], 0x08080808u); in TEST()
762 EXPECT_EQ(out[0][1], 0x08080808u); in TEST()
764 EXPECT_EQ(out[1][0], 0xFFFFFFFFu); in TEST()
765 EXPECT_EQ(out[1][1], 0xFEFFFFFFu); in TEST()
767 EXPECT_EQ(out[2][0], 0x00000000u); in TEST()
768 EXPECT_EQ(out[2][1], 0x08060402u); in TEST()
770 EXPECT_EQ(out[3][0], 0x08080808u); in TEST()
771 EXPECT_EQ(out[3][1], 0x08080808u); in TEST()
773 EXPECT_EQ(out[4][0], 0x7F7F7F7Fu); in TEST()
774 EXPECT_EQ(out[4][1], 0x7E7F7F7Fu); in TEST()
776 EXPECT_EQ(out[5][0], 0x80808080u); in TEST()
777 EXPECT_EQ(out[5][1], 0x88868482u); in TEST()
779 EXPECT_EQ(out[6][0], 0x80808080u); in TEST()
780 EXPECT_EQ(out[6][1], 0x88868482u); in TEST()
782 EXPECT_EQ(out[7][0], 0x00040004u); in TEST()
783 EXPECT_EQ(out[7][1], 0x00040004u); in TEST()
785 EXPECT_EQ(out[8][0], 0x7FFF7FFFu); in TEST()
786 EXPECT_EQ(out[8][1], 0x7FFE7FFFu); in TEST()
788 EXPECT_EQ(out[9][0], 0x80008000u); in TEST()
789 EXPECT_EQ(out[9][1], 0x80048002u); in TEST()
791 EXPECT_EQ(out[10][0], 0x80008000u); in TEST()
792 EXPECT_EQ(out[10][1], 0x80048002u); in TEST()
794 EXPECT_EQ(out[11][0], 0x00040004u); in TEST()
795 EXPECT_EQ(out[11][1], 0x00040004u); in TEST()
797 EXPECT_EQ(out[12][0], 0xFFFFFFFFu); in TEST()
798 EXPECT_EQ(out[12][1], 0xFFFEFFFFu); in TEST()
800 EXPECT_EQ(out[13][0], 0x00000000u); in TEST()
801 EXPECT_EQ(out[13][1], 0x00040002u); in TEST()
816 Pointer<Byte> out = function.Arg<1>(); in TEST() local
821 *Pointer<Short4>(out + 8 * 0) = in TEST()
824 *Pointer<Short4>(out + 8 * 1) = Unpack(test_byte_a); in TEST()
834 unsigned int out[2][2]; in TEST() local
836 memset(&out, 0, sizeof(out)); in TEST()
841 int(*callable)(void*,void*) = (int(*)(void*,void*))routine->getEntry(); in TEST()
842 callable(&in, &out); in TEST()
844 EXPECT_EQ(out[0][0], 0x78EF9012u); in TEST()
845 EXPECT_EQ(out[0][1], 0x34AB56CDu); in TEST()
847 EXPECT_EQ(out[1][0], 0xEFEF1212u); in TEST()
848 EXPECT_EQ(out[1][1], 0xABABCDCDu); in TEST()
862 Pointer<Byte> out = function.Arg<0>(); in TEST() local
864 *Pointer<SByte8>(out + 8 * 0) = in TEST()
865 PackSigned(Short4(-1, -2, 1, 2), in TEST()
866 Short4(3, 4, -3, -4)); in TEST()
868 *Pointer<Byte8>(out + 8 * 1) = in TEST()
869 PackUnsigned(Short4(-1, -2, 1, 2), in TEST()
870 Short4(3, 4, -3, -4)); in TEST()
872 *Pointer<Short8>(out + 8 * 2) = in TEST()
873 PackSigned(Int4(-1, -2, 1, 2), in TEST()
874 Int4(3, 4, -3, -4)); in TEST()
876 *Pointer<UShort8>(out + 8 * 4) = in TEST()
877 PackUnsigned(Int4(-1, -2, 1, 2), in TEST()
878 Int4(3, 4, -3, -4)); in TEST()
887 unsigned int out[6][2]; in TEST() local
889 memset(&out, 0, sizeof(out)); in TEST()
891 int(*callable)(void*) = (int(*)(void*))routine->getEntry(); in TEST()
892 callable(&out); in TEST()
894 EXPECT_EQ(out[0][0], 0x0201FEFFu); in TEST()
895 EXPECT_EQ(out[0][1], 0xFCFD0403u); in TEST()
897 EXPECT_EQ(out[1][0], 0x02010000u); in TEST()
898 EXPECT_EQ(out[1][1], 0x00000403u); in TEST()
900 EXPECT_EQ(out[2][0], 0xFFFEFFFFu); in TEST()
901 EXPECT_EQ(out[2][1], 0x00020001u); in TEST()
903 EXPECT_EQ(out[3][0], 0x00040003u); in TEST()
904 EXPECT_EQ(out[3][1], 0xFFFCFFFDu); in TEST()
906 EXPECT_EQ(out[4][0], 0x00000000u); in TEST()
907 EXPECT_EQ(out[4][1], 0x00020001u); in TEST()
909 EXPECT_EQ(out[5][0], 0x00040003u); in TEST()
910 EXPECT_EQ(out[5][1], 0x00000000u); in TEST()
924 Pointer<Byte> out = function.Arg<0>(); in TEST() local
926 *Pointer<Short4>(out + 8 * 0) = in TEST()
929 *Pointer<UShort4>(out + 8 * 1) = in TEST()
941 unsigned int out[2][2]; in TEST() local
943 memset(&out, 0, sizeof(out)); in TEST()
945 int(*callable)(void*) = (int(*)(void*))routine->getEntry(); in TEST()
946 callable(&out); in TEST()
948 EXPECT_EQ(out[0][0], 0x00080002u); in TEST()
949 EXPECT_EQ(out[0][1], 0x008D000fu); in TEST()
951 EXPECT_EQ(out[1][0], 0x00080002u); in TEST()
952 EXPECT_EQ(out[1][1], 0xe8C0000Fu); in TEST()
966 Pointer<Byte> out = function.Arg<0>(); in TEST() local
968 *Pointer<Int2>(out + 8 * 0) = in TEST()
980 unsigned int out[1][2]; in TEST() local
982 memset(&out, 0, sizeof(out)); in TEST()
984 int(*callable)(void*) = (int(*)(void*))routine->getEntry(); in TEST()
985 callable(&out); in TEST()
987 EXPECT_EQ(out[0][0], 0x000AE34Au); in TEST()
988 EXPECT_EQ(out[0][1], 0x009D5254u); in TEST()