]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/Wunused-var-3.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / Wunused-var-3.c
CommitLineData
9243c51d
JJ
1/* PR c/52577 */
2/* { dg-do compile } */
3/* { dg-options "-Wunused" } */
4
5typedef int V __attribute__((vector_size (sizeof (int) * 4)));
6
7void
8f1 (V *p)
9{
10 V mask = { 1, 2, 3, 0 };
11 *p = __builtin_shuffle (*p, mask);
12}
13
14void
15f2 (V *p, V *q)
16{
17 V mask = { 1, 2, 3, 0 };
18 *p = __builtin_shuffle (*p, *q, mask);
19}
20
21void
22f3 (V *p, V *mask)
23{
24 V a = { 1, 2, 3, 0 };
25 *p = __builtin_shuffle (a, *mask);
26}
27
28void
29f4 (V *p, V *mask)
30{
31 V a = { 1, 2, 3, 0 };
32 V b = { 2, 3, 4, 1 };
33 *p = __builtin_shuffle (a, b, *mask);
34}