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-8.inc] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
/* Test fragment for vectors of 8 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
  {
14
    { A1, B1, C1, D1, E1, F1, G1, H1 },
15
    {  0,  1,  2,  3,  4,  5,  6,  7 },
16
    { A1, B1, C1, D1, E1, F1, G1, H1 },
17
  },
18
  {
19
    { A1, B1, C1, D1, E1, F1, G1, H1 },
20
    { 0x10, 0x21, 0x32, 0x43, 0x54, 0x65, 0x76, 0x87 },
21
    { A1, B1, C1, D1, E1, F1, G1, H1 },
22
  },
23
  {
24
    { A1, B1, C1, D1, E1, F1, G1, H1 },
25
    {  7,  6,  5,  4,  3,  2,  1,  0 },
26
    { H1, G1, F1, E1, D1, C1, B1, A1 },
27
  },
28
  {
29
    { A1, B1, C1, D1, E1, F1, G1, H1 },
30
    {  7,  0,  5,  3,  2,  4,  1,  6 },
31
    { H1, A1, F1, D1, C1, E1, B1, G1 },
32
  },
33
  {
34
    { A1, B1, C1, D1, E1, F1, G1, H1 },
35
    {  0,  2,  1,  3,  4,  6,  5,  7 },
36
    { A1, C1, B1, D1, E1, G1, F1, H1 },
37
  },
38
  {
39
    { A2, B2, C2, D2, E2, F2, G2, H2 },
40
    {  3,  1,  2,  0,  7,  5,  6,  4 },
41
    { D2, B2, C2, A2, H2, F2, G2, E2 },
42
  },
43
  {
44
    { A2, B2, C2, D2, E2, F2, G2, H2 },
45
    { 0, 0, 0, 0 },
46
    { A2, A2, A2, A2, A2, A2, A2, A2 },
47
  },
48
  {
49
    { A2, B2, C2, D2, E2, F2, G2, H2 },
50
    {  1,  6,  1,  6,  1,  6,  1,  6 },
51
    { B2, G2, B2, G2, B2, G2, B2, G2 },
52
  }
53
};
54
 
55
struct S2
56
{
57
  V in1, in2;
58
  VI mask;
59
  V out;
60
};
61
 
62
struct S2 tests2[] = {
63
  {
64
    { A1, B1, C1, D1, E1, F1, G1, H1 },
65
    { A2, B2, C2, D2, E2, F2, G2, H2 },
66
    { 0, 1, 2, 3, 4, 5, 6, 7 },
67
    { A1, B1, C1, D1, E1, F1, G1, H1 },
68
  },
69
  {
70
    { A1, B1, C1, D1, E1, F1, G1, H1 },
71
    { A2, B2, C2, D2, E2, F2, G2, H2 },
72
    {  8,  9, 10, 11, 12, 13, 14, 15 },
73
    { A2, B2, C2, D2, E2, F2, G2, H2 },
74
  },
75
  {
76
    { A1, B1, C1, D1, E1, F1, G1, H1 },
77
    { A2, B2, C2, D2, E2, F2, G2, H2 },
78
    {  0,  8,  1,  9,  2, 10,  3, 11 },
79
    { A1, A2, B1, B2, C1, C2, D1, D2 },
80
  },
81
  {
82
    { A1, B1, C1, D1, E1, F1, G1, H1 },
83
    { A2, B2, C2, D2, E2, F2, G2, H2 },
84
    {  0, 15,  4, 11, 12,  3,  7,  8 },
85
    { A1, H2, E1, D2, E2, D1, H1, A2 },
86
  },
87
  {
88
    { A1, B1, C1, D1, E1, F1, G1, H1 },
89
    { A2, B2, C2, D2, E2, F2, G2, H2 },
90
    {  0,  0,  0,  0,  0,  0,  0,  0 },
91
    { A1, A1, A1, A1, A1, A1, A1, A1 },
92
  },
93
  {
94
    { A1, B1, C1, D1, E1, F1, G1, H1 },
95
    { A2, B2, C2, D2, E2, F2, G2, H2 },
96
    { 0x1e, 0x2e, 0x3e, 0x4e, 0x5e, 0x6e, 0x7e, 0x8e },
97
    { G2, G2, G2, G2, G2, G2, G2, G2 },
98
  },
99
};
100
 
101
#endif

powered by: WebSVN 2.1.0

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