OpenCores
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] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
/* Test fragment for vectors of 4 elements.  */
2
 
3
#ifndef UNSUPPORTED
4
 
5
struct S
6
{
7
  V in;
8
  VI mask;
9
  V out;
10
};
11
 
12
struct S tests[] = {
13
  { { A, B, C, D }, { 0, 1, 2, 3 }, { A, B, C, D }, },
14
  { { A, B, C, D }, { 0+1*4, 1+2*4, 2+3*4, 3+4*4 }, { A, B, C, D } },
15
  { { A, B, C, D }, { 3, 2, 1, 0 }, { D, C, B, A } },
16
  { { A, B, C, D }, { 0, 3, 2, 1 }, { A, D, C, B } },
17
  { { A, B, C, D }, { 0, 2, 1, 3 }, { A, C, B, D } },
18
  { { W, X, Y, Z }, { 3, 1, 2, 0 }, { Z, X, Y, W } },
19
  { { W, X, Y, Z }, { 0, 0, 0, 0 }, { W, W, W, W } },
20
  { { W, X, Y, Z }, { 1, 2, 1, 2 }, { X, Y, X, Y } },
21
};
22
 
23
struct S2
24
{
25
  V in1, in2;
26
  VI mask;
27
  V out;
28
};
29
 
30
struct S2 tests2[] = {
31
  { { A, B, C, D }, { W, X, Y, Z }, { 0, 1, 2, 3 }, { A, B, C, D } },
32
  { { A, B, C, D }, { W, X, Y, Z }, { 4, 5, 6, 7 }, { W, X, Y, Z } },
33
  { { A, B, C, D }, { W, X, Y, Z }, { 0, 4, 1, 5 }, { A, W, B, X } },
34
  { { A, B, C, D }, { W, X, Y, Z }, { 0, 7, 4, 3 }, { A, Z, W, D } },
35
  { { A, B, C, D }, { W, X, Y, Z }, { 0, 0, 0, 0 }, { A, A, A, A } },
36
  { { A, B, C, D }, { W, X, Y, Z }, { 7, 7, 7, 7 }, { Z, Z, Z, Z } },
37
};
38
 
39
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.