URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [vshuf-4.inc] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test fragment for vectors of 4 elements. */
#ifndef UNSUPPORTED
struct S
{
V in;
VI mask;
V out;
};
struct S tests[] = {
{ { A, B, C, D }, { 0, 1, 2, 3 }, { A, B, C, D }, },
{ { A, B, C, D }, { 0+1*4, 1+2*4, 2+3*4, 3+4*4 }, { A, B, C, D } },
{ { A, B, C, D }, { 3, 2, 1, 0 }, { D, C, B, A } },
{ { A, B, C, D }, { 0, 3, 2, 1 }, { A, D, C, B } },
{ { A, B, C, D }, { 0, 2, 1, 3 }, { A, C, B, D } },
{ { W, X, Y, Z }, { 3, 1, 2, 0 }, { Z, X, Y, W } },
{ { W, X, Y, Z }, { 0, 0, 0, 0 }, { W, W, W, W } },
{ { W, X, Y, Z }, { 1, 2, 1, 2 }, { X, Y, X, Y } },
};
struct S2
{
V in1, in2;
VI mask;
V out;
};
struct S2 tests2[] = {
{ { A, B, C, D }, { W, X, Y, Z }, { 0, 1, 2, 3 }, { A, B, C, D } },
{ { A, B, C, D }, { W, X, Y, Z }, { 4, 5, 6, 7 }, { W, X, Y, Z } },
{ { A, B, C, D }, { W, X, Y, Z }, { 0, 4, 1, 5 }, { A, W, B, X } },
{ { A, B, C, D }, { W, X, Y, Z }, { 0, 7, 4, 3 }, { A, Z, W, D } },
{ { A, B, C, D }, { W, X, Y, Z }, { 0, 0, 0, 0 }, { A, A, A, A } },
{ { A, B, C, D }, { W, X, Y, Z }, { 7, 7, 7, 7 }, { Z, Z, Z, Z } },
};
#endif
Go to most recent revision | Compare with Previous | Blame | View Log