• Home
  • Raw
  • Download

Lines Matching refs:out

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
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
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
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()
302 } out; in TEST() local
304 memset(&out, 0, sizeof(out)); in TEST()
307 callable(&out); in TEST()
311 EXPECT_EQ(out.f[i][0], float((i >> 0) & 0x03) + 1.0f); in TEST()
312 EXPECT_EQ(out.f[i][1], float((i >> 2) & 0x03) + 1.0f); in TEST()
313 EXPECT_EQ(out.f[i][2], float((i >> 4) & 0x03) + 1.0f); in TEST()
314 EXPECT_EQ(out.f[i][3], float((i >> 6) & 0x03) + 1.0f); in TEST()
319 EXPECT_EQ(out.f[256 + i][0], float((i >> 0) & 0x03) + 1.0f); in TEST()
320 EXPECT_EQ(out.f[256 + i][1], float((i >> 2) & 0x03) + 1.0f); in TEST()
321 EXPECT_EQ(out.f[256 + i][2], float((i >> 4) & 0x03) + 5.0f); in TEST()
322 EXPECT_EQ(out.f[256 + i][3], float((i >> 6) & 0x03) + 5.0f); in TEST()
325 EXPECT_EQ(out.f[512 + 0][0], 1.0f); in TEST()
326 EXPECT_EQ(out.f[512 + 0][1], 5.0f); in TEST()
327 EXPECT_EQ(out.f[512 + 0][2], 2.0f); in TEST()
328 EXPECT_EQ(out.f[512 + 0][3], 6.0f); in TEST()
330 EXPECT_EQ(out.f[512 + 1][0], 3.0f); in TEST()
331 EXPECT_EQ(out.f[512 + 1][1], 7.0f); in TEST()
332 EXPECT_EQ(out.f[512 + 1][2], 4.0f); in TEST()
333 EXPECT_EQ(out.f[512 + 1][3], 8.0f); in TEST()
335 EXPECT_EQ(out.i[0][0], 0x00050001); in TEST()
336 EXPECT_EQ(out.i[0][1], 0x00060002); in TEST()
337 EXPECT_EQ(out.i[0][2], 0x00000000); in TEST()
338 EXPECT_EQ(out.i[0][3], 0x00000000); in TEST()
340 EXPECT_EQ(out.i[1][0], 0x00070003); in TEST()
341 EXPECT_EQ(out.i[1][1], 0x00080004); in TEST()
342 EXPECT_EQ(out.i[1][2], 0x00000000); in TEST()
343 EXPECT_EQ(out.i[1][3], 0x00000000); in TEST()
345 EXPECT_EQ(out.i[2][0], 0x0A020901); in TEST()
346 EXPECT_EQ(out.i[2][1], 0x0C040B03); in TEST()
347 EXPECT_EQ(out.i[2][2], 0x00000000); in TEST()
348 EXPECT_EQ(out.i[2][3], 0x00000000); in TEST()
350 EXPECT_EQ(out.i[3][0], 0x0E060D05); in TEST()
351 EXPECT_EQ(out.i[3][1], 0x10080F07); in TEST()
352 EXPECT_EQ(out.i[3][2], 0x00000000); in TEST()
353 EXPECT_EQ(out.i[3][3], 0x00000000); in TEST()
432 Pointer<Byte> out = function.Arg<0>(); in TEST() local
434 …*Pointer<Float4>(out + 16 * 0) = Min(Float4(1.0f, 0.0f, -0.0f, +0.0f), Float4(0.0f, 1.0f, +0.0f, -… in TEST()
435 …*Pointer<Float4>(out + 16 * 1) = Max(Float4(1.0f, 0.0f, -0.0f, +0.0f), Float4(0.0f, 1.0f, +0.0f, -… in TEST()
437 *Pointer<Int4>(out + 16 * 2) = Min(Int4(1, 0, -1, -0), Int4(0, 1, 0, +0)); in TEST()
438 *Pointer<Int4>(out + 16 * 3) = Max(Int4(1, 0, -1, -0), Int4(0, 1, 0, +0)); in TEST()
439 *Pointer<UInt4>(out + 16 * 4) = Min(UInt4(1, 0, -1, -0), UInt4(0, 1, 0, +0)); in TEST()
440 *Pointer<UInt4>(out + 16 * 5) = Max(UInt4(1, 0, -1, -0), UInt4(0, 1, 0, +0)); in TEST()
442 *Pointer<Short4>(out + 16 * 6) = Min(Short4(1, 0, -1, -0), Short4(0, 1, 0, +0)); in TEST()
443 *Pointer<Short4>(out + 16 * 7) = Max(Short4(1, 0, -1, -0), Short4(0, 1, 0, +0)); in TEST()
444 *Pointer<UShort4>(out + 16 * 8) = Min(UShort4(1, 0, -1, -0), UShort4(0, 1, 0, +0)); in TEST()
445 *Pointer<UShort4>(out + 16 * 9) = Max(UShort4(1, 0, -1, -0), UShort4(0, 1, 0, +0)); in TEST()
454 int out[10][4]; in TEST() local
456 memset(&out, 0, sizeof(out)); in TEST()
459 callable(&out); in TEST()
461 EXPECT_EQ(out[0][0], 0x00000000); in TEST()
462 EXPECT_EQ(out[0][1], 0x00000000); in TEST()
463 EXPECT_EQ(out[0][2], 0x00000000); in TEST()
464 EXPECT_EQ(out[0][3], 0x80000000); in TEST()
466 EXPECT_EQ(out[1][0], 0x3F800000); in TEST()
467 EXPECT_EQ(out[1][1], 0x3F800000); in TEST()
468 EXPECT_EQ(out[1][2], 0x00000000); in TEST()
469 EXPECT_EQ(out[1][3], 0x80000000); in TEST()
471 EXPECT_EQ(out[2][0], 0x00000000); in TEST()
472 EXPECT_EQ(out[2][1], 0x00000000); in TEST()
473 EXPECT_EQ(out[2][2], 0xFFFFFFFF); in TEST()
474 EXPECT_EQ(out[2][3], 0x00000000); in TEST()
476 EXPECT_EQ(out[3][0], 0x00000001); in TEST()
477 EXPECT_EQ(out[3][1], 0x00000001); in TEST()
478 EXPECT_EQ(out[3][2], 0x00000000); in TEST()
479 EXPECT_EQ(out[3][3], 0x00000000); in TEST()
481 EXPECT_EQ(out[4][0], 0x00000000); in TEST()
482 EXPECT_EQ(out[4][1], 0x00000000); in TEST()
483 EXPECT_EQ(out[4][2], 0x00000000); in TEST()
484 EXPECT_EQ(out[4][3], 0x00000000); in TEST()
486 EXPECT_EQ(out[5][0], 0x00000001); in TEST()
487 EXPECT_EQ(out[5][1], 0x00000001); in TEST()
488 EXPECT_EQ(out[5][2], 0xFFFFFFFF); in TEST()
489 EXPECT_EQ(out[5][3], 0x00000000); in TEST()
491 EXPECT_EQ(out[6][0], 0x00000000); in TEST()
492 EXPECT_EQ(out[6][1], 0x0000FFFF); in TEST()
493 EXPECT_EQ(out[6][2], 0x00000000); in TEST()
494 EXPECT_EQ(out[6][3], 0x00000000); in TEST()
496 EXPECT_EQ(out[7][0], 0x00010001); in TEST()
497 EXPECT_EQ(out[7][1], 0x00000000); in TEST()
498 EXPECT_EQ(out[7][2], 0x00000000); in TEST()
499 EXPECT_EQ(out[7][3], 0x00000000); in TEST()
501 EXPECT_EQ(out[8][0], 0x00000000); in TEST()
502 EXPECT_EQ(out[8][1], 0x00000000); in TEST()
503 EXPECT_EQ(out[8][2], 0x00000000); in TEST()
504 EXPECT_EQ(out[8][3], 0x00000000); in TEST()
506 EXPECT_EQ(out[9][0], 0x00010001); in TEST()
507 EXPECT_EQ(out[9][1], 0x0000FFFF); in TEST()
508 EXPECT_EQ(out[9][2], 0x00000000); in TEST()
509 EXPECT_EQ(out[9][3], 0x00000000); in TEST()
523 Pointer<Byte> out = function.Arg<0>(); in TEST() local
525 *Pointer<Int>(out + 16 * 0) = ~Int(0x55555555); in TEST()
526 *Pointer<Short>(out + 16 * 1) = ~Short(0x5555); in TEST()
527 *Pointer<Int4>(out + 16 * 2) = ~Int4(0x55555555, 0xAAAAAAAA, 0x00000000, 0xFFFFFFFF); in TEST()
528 *Pointer<Short4>(out + 16 * 3) = ~Short4(0x5555, 0xAAAA, 0x0000, 0xFFFF); in TEST()
530 *Pointer<Int>(out + 16 * 4) = -Int(0x55555555); in TEST()
531 *Pointer<Short>(out + 16 * 5) = -Short(0x5555); in TEST()
532 *Pointer<Int4>(out + 16 * 6) = -Int4(0x55555555, 0xAAAAAAAA, 0x00000000, 0xFFFFFFFF); in TEST()
533 *Pointer<Short4>(out + 16 * 7) = -Short4(0x5555, 0xAAAA, 0x0000, 0xFFFF); in TEST()
535 *Pointer<Float4>(out + 16 * 8) = -Float4(1.0f, -1.0f, 0.0f, -0.0f); in TEST()
544 int out[10][4]; in TEST() local
546 memset(&out, 0, sizeof(out)); in TEST()
549 callable(&out); in TEST()
551 EXPECT_EQ(out[0][0], 0xAAAAAAAA); in TEST()
552 EXPECT_EQ(out[0][1], 0x00000000); in TEST()
553 EXPECT_EQ(out[0][2], 0x00000000); in TEST()
554 EXPECT_EQ(out[0][3], 0x00000000); in TEST()
556 EXPECT_EQ(out[1][0], 0x0000AAAA); in TEST()
557 EXPECT_EQ(out[1][1], 0x00000000); in TEST()
558 EXPECT_EQ(out[1][2], 0x00000000); in TEST()
559 EXPECT_EQ(out[1][3], 0x00000000); in TEST()
561 EXPECT_EQ(out[2][0], 0xAAAAAAAA); in TEST()
562 EXPECT_EQ(out[2][1], 0x55555555); in TEST()
563 EXPECT_EQ(out[2][2], 0xFFFFFFFF); in TEST()
564 EXPECT_EQ(out[2][3], 0x00000000); in TEST()
566 EXPECT_EQ(out[3][0], 0x5555AAAA); in TEST()
567 EXPECT_EQ(out[3][1], 0x0000FFFF); in TEST()
568 EXPECT_EQ(out[3][2], 0x00000000); in TEST()
569 EXPECT_EQ(out[3][3], 0x00000000); in TEST()
571 EXPECT_EQ(out[4][0], 0xAAAAAAAB); in TEST()
572 EXPECT_EQ(out[4][1], 0x00000000); in TEST()
573 EXPECT_EQ(out[4][2], 0x00000000); in TEST()
574 EXPECT_EQ(out[4][3], 0x00000000); in TEST()
576 EXPECT_EQ(out[5][0], 0x0000AAAB); in TEST()
577 EXPECT_EQ(out[5][1], 0x00000000); in TEST()
578 EXPECT_EQ(out[5][2], 0x00000000); in TEST()
579 EXPECT_EQ(out[5][3], 0x00000000); in TEST()
581 EXPECT_EQ(out[6][0], 0xAAAAAAAB); in TEST()
582 EXPECT_EQ(out[6][1], 0x55555556); in TEST()
583 EXPECT_EQ(out[6][2], 0x00000000); in TEST()
584 EXPECT_EQ(out[6][3], 0x00000001); in TEST()
586 EXPECT_EQ(out[7][0], 0x5556AAAB); in TEST()
587 EXPECT_EQ(out[7][1], 0x00010000); in TEST()
588 EXPECT_EQ(out[7][2], 0x00000000); in TEST()
589 EXPECT_EQ(out[7][3], 0x00000000); in TEST()
591 EXPECT_EQ(out[8][0], 0xBF800000); in TEST()
592 EXPECT_EQ(out[8][1], 0x3F800000); in TEST()
593 EXPECT_EQ(out[8][2], 0x80000000); in TEST()
594 EXPECT_EQ(out[8][3], 0x00000000); in TEST()
608 Pointer<Byte> out = function.Arg<0>(); in TEST() local
610 …*Pointer<Int4>(out + 16 * 0) = CmpEQ(Float4(1.0f, 1.0f, -0.0f, +0.0f), Float4(0.0f, 1.0f, +0.0f, -… in TEST()
611 *Pointer<Int4>(out + 16 * 1) = CmpEQ(Int4(1, 0, -1, -0), Int4(0, 1, 0, +0)); in TEST()
612 …*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()
614 …*Pointer<Int4>(out + 16 * 3) = CmpNLT(Float4(1.0f, 1.0f, -0.0f, +0.0f), Float4(0.0f, 1.0f, +0.0f, … in TEST()
615 *Pointer<Int4>(out + 16 * 4) = CmpNLT(Int4(1, 0, -1, -0), Int4(0, 1, 0, +0)); in TEST()
616 …*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()
625 int out[6][4]; in TEST() local
627 memset(&out, 0, sizeof(out)); in TEST()
630 callable(&out); in TEST()
632 EXPECT_EQ(out[0][0], 0x00000000); in TEST()
633 EXPECT_EQ(out[0][1], 0xFFFFFFFF); in TEST()
634 EXPECT_EQ(out[0][2], 0xFFFFFFFF); in TEST()
635 EXPECT_EQ(out[0][3], 0xFFFFFFFF); in TEST()
637 EXPECT_EQ(out[1][0], 0x00000000); in TEST()
638 EXPECT_EQ(out[1][1], 0x00000000); in TEST()
639 EXPECT_EQ(out[1][2], 0x00000000); in TEST()
640 EXPECT_EQ(out[1][3], 0xFFFFFFFF); in TEST()
642 EXPECT_EQ(out[2][0], 0xFF000000); in TEST()
643 EXPECT_EQ(out[2][1], 0x00000000); in TEST()
645 EXPECT_EQ(out[3][0], 0xFFFFFFFF); in TEST()
646 EXPECT_EQ(out[3][1], 0xFFFFFFFF); in TEST()
647 EXPECT_EQ(out[3][2], 0xFFFFFFFF); in TEST()
648 EXPECT_EQ(out[3][3], 0xFFFFFFFF); in TEST()
650 EXPECT_EQ(out[4][0], 0xFFFFFFFF); in TEST()
651 EXPECT_EQ(out[4][1], 0x00000000); in TEST()
652 EXPECT_EQ(out[4][2], 0x00000000); in TEST()
653 EXPECT_EQ(out[4][3], 0xFFFFFFFF); in TEST()
655 EXPECT_EQ(out[5][0], 0x00000000); in TEST()
656 EXPECT_EQ(out[5][1], 0xFFFFFFFF); in TEST()