1 |
691 |
jeremybenn |
/* { dg-do compile } */
|
2 |
|
|
/* { dg-options "-O2 -w" } */
|
3 |
|
|
/* { dg-final { scan-assembler-times "lqr\t.3,.LC" 4 } } */
|
4 |
|
|
/* { dg-final { scan-assembler-times "cbd\t.3,0\\(.sp\\)" 1 } } */
|
5 |
|
|
/* { dg-final { scan-assembler-times "cbd\t.3,1\\(.sp\\)" 1 } } */
|
6 |
|
|
/* { dg-final { scan-assembler-times "cbd\t.3,2\\(.sp\\)" 1 } } */
|
7 |
|
|
/* { dg-final { scan-assembler-times "cbd\t.3,3\\(.sp\\)" 1 } } */
|
8 |
|
|
/* { dg-final { scan-assembler-times "cbd\t.3,4\\(.sp\\)" 1 } } */
|
9 |
|
|
/* { dg-final { scan-assembler-times "cbd\t.3,5\\(.sp\\)" 1 } } */
|
10 |
|
|
/* { dg-final { scan-assembler-times "cbd\t.3,6\\(.sp\\)" 1 } } */
|
11 |
|
|
/* { dg-final { scan-assembler-times "cbd\t.3,7\\(.sp\\)" 1 } } */
|
12 |
|
|
/* { dg-final { scan-assembler-times "cbd\t.3,8\\(.sp\\)" 1 } } */
|
13 |
|
|
/* { dg-final { scan-assembler-times "cbd\t.3,9\\(.sp\\)" 1 } } */
|
14 |
|
|
/* { dg-final { scan-assembler-times "cbd\t.3,10\\(.sp\\)" 1 } } */
|
15 |
|
|
/* { dg-final { scan-assembler-times "cbd\t.3,11\\(.sp\\)" 1 } } */
|
16 |
|
|
/* { dg-final { scan-assembler-times "cbd\t.3,12\\(.sp\\)" 1 } } */
|
17 |
|
|
/* { dg-final { scan-assembler-times "cbd\t.3,13\\(.sp\\)" 1 } } */
|
18 |
|
|
/* { dg-final { scan-assembler-times "cbd\t.3,14\\(.sp\\)" 1 } } */
|
19 |
|
|
/* { dg-final { scan-assembler-times "cbd\t.3,15\\(.sp\\)" 1 } } */
|
20 |
|
|
/* { dg-final { scan-assembler-times "chd\t.3,0\\(.sp\\)" 1 } } */
|
21 |
|
|
/* { dg-final { scan-assembler-times "chd\t.3,2\\(.sp\\)" 1 } } */
|
22 |
|
|
/* { dg-final { scan-assembler-times "chd\t.3,4\\(.sp\\)" 1 } } */
|
23 |
|
|
/* { dg-final { scan-assembler-times "chd\t.3,6\\(.sp\\)" 1 } } */
|
24 |
|
|
/* { dg-final { scan-assembler-times "chd\t.3,8\\(.sp\\)" 1 } } */
|
25 |
|
|
/* { dg-final { scan-assembler-times "chd\t.3,10\\(.sp\\)" 1 } } */
|
26 |
|
|
/* { dg-final { scan-assembler-times "chd\t.3,12\\(.sp\\)" 1 } } */
|
27 |
|
|
/* { dg-final { scan-assembler-times "chd\t.3,14\\(.sp\\)" 1 } } */
|
28 |
|
|
/* { dg-final { scan-assembler-times "cwd\t.3,0\\(.sp\\)" 1 } } */
|
29 |
|
|
/* { dg-final { scan-assembler-times "cwd\t.3,4\\(.sp\\)" 1 } } */
|
30 |
|
|
/* { dg-final { scan-assembler-times "cwd\t.3,8\\(.sp\\)" 1 } } */
|
31 |
|
|
/* { dg-final { scan-assembler-times "cwd\t.3,12\\(.sp\\)" 1 } } */
|
32 |
|
|
/* { dg-final { scan-assembler-times "cdd\t.3,0\\(.sp\\)" 1 } } */
|
33 |
|
|
/* { dg-final { scan-assembler-times "cdd\t.3,8\\(.sp\\)" 1 } } */
|
34 |
|
|
|
35 |
|
|
__vector unsigned char
|
36 |
|
|
not_cpat0()
|
37 |
|
|
{
|
38 |
|
|
/* Contains no runs */
|
39 |
|
|
return (__vector unsigned char) {
|
40 |
|
|
0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
|
41 |
|
|
0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F};
|
42 |
|
|
}
|
43 |
|
|
|
44 |
|
|
__vector unsigned char
|
45 |
|
|
not_cpat1()
|
46 |
|
|
{
|
47 |
|
|
/* Includes 1 run but not in the right place. */
|
48 |
|
|
return (__vector unsigned char) {
|
49 |
|
|
0x10, 0x02, 0x03, 0x13, 0x14, 0x15, 0x16, 0x17,
|
50 |
|
|
0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F};
|
51 |
|
|
}
|
52 |
|
|
|
53 |
|
|
__vector unsigned char
|
54 |
|
|
not_cpat2()
|
55 |
|
|
{
|
56 |
|
|
/* Includes 2 runs. */
|
57 |
|
|
return (__vector unsigned char) {
|
58 |
|
|
0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
|
59 |
|
|
0x00, 0x01, 0x02, 0x03, 0x00, 0x01, 0x02, 0x03};
|
60 |
|
|
}
|
61 |
|
|
|
62 |
|
|
__vector unsigned char
|
63 |
|
|
not_cpat3()
|
64 |
|
|
{
|
65 |
|
|
/* Includes 1 incorrect run. */
|
66 |
|
|
return (__vector unsigned char) {
|
67 |
|
|
0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
|
68 |
|
|
0x00, 0x01, 0x02, 0x03, 0x05, 0x06, 0x07, 0x1F};
|
69 |
|
|
}
|
70 |
|
|
|
71 |
|
|
__vector unsigned char cbd_0() { return (__vector unsigned char) { 0x03, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
72 |
|
|
__vector unsigned char cbd_1() { return (__vector unsigned char) { 0x10, 0x03, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
73 |
|
|
__vector unsigned char cbd_2() { return (__vector unsigned char) { 0x10, 0x11, 0x03, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
74 |
|
|
__vector unsigned char cbd_3() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x03, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
75 |
|
|
__vector unsigned char cbd_4() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x03, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
76 |
|
|
__vector unsigned char cbd_5() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x03, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
77 |
|
|
__vector unsigned char cbd_6() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x03, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
78 |
|
|
__vector unsigned char cbd_7() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x03, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
79 |
|
|
__vector unsigned char cbd_8() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x03, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
80 |
|
|
__vector unsigned char cbd_9() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x03, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
81 |
|
|
__vector unsigned char cbd_a() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x03, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
82 |
|
|
__vector unsigned char cbd_b() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x03, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
83 |
|
|
__vector unsigned char cbd_c() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x03, 0x1D, 0x1E, 0x1F}; }
|
84 |
|
|
__vector unsigned char cbd_d() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x03, 0x1E, 0x1F}; }
|
85 |
|
|
__vector unsigned char cbd_e() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x03, 0x1F}; }
|
86 |
|
|
__vector unsigned char cbd_f() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x03}; }
|
87 |
|
|
|
88 |
|
|
__vector unsigned char chd_0() { return (__vector unsigned char) { 0x02, 0x03, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
89 |
|
|
__vector unsigned char chd_2() { return (__vector unsigned char) { 0x10, 0x11, 0x02, 0x03, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
90 |
|
|
__vector unsigned char chd_4() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x02, 0x03, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
91 |
|
|
__vector unsigned char chd_6() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x02, 0x03, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
92 |
|
|
__vector unsigned char chd_8() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x02, 0x03, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
93 |
|
|
__vector unsigned char chd_a() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x02, 0x03, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
94 |
|
|
__vector unsigned char chd_c() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x02, 0x03, 0x1E, 0x1F}; }
|
95 |
|
|
__vector unsigned char chd_e() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x02, 0x03}; }
|
96 |
|
|
|
97 |
|
|
__vector unsigned char cwd_0() { return (__vector unsigned char) { 0x00, 0x01, 0x02, 0x03, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
98 |
|
|
__vector unsigned char cwd_4() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x00, 0x01, 0x02, 0x03, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
99 |
|
|
__vector unsigned char cwd_8() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x00, 0x01, 0x02, 0x03, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
100 |
|
|
__vector unsigned char cwd_c() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x00, 0x01, 0x02, 0x03}; }
|
101 |
|
|
|
102 |
|
|
__vector unsigned char cdd_0() { return (__vector unsigned char) { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F}; }
|
103 |
|
|
__vector unsigned char cdd_8() { return (__vector unsigned char) { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07}; }
|
104 |
|
|
|