Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/Wunused-var-3.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* PR c/52577 */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-Wunused" } */ | |
4 | |
5 typedef int V __attribute__((vector_size (sizeof (int) * 4))); | |
6 | |
7 void | |
8 f1 (V *p) | |
9 { | |
10 V mask = { 1, 2, 3, 0 }; | |
11 *p = __builtin_shuffle (*p, mask); | |
12 } | |
13 | |
14 void | |
15 f2 (V *p, V *q) | |
16 { | |
17 V mask = { 1, 2, 3, 0 }; | |
18 *p = __builtin_shuffle (*p, *q, mask); | |
19 } | |
20 | |
21 void | |
22 f3 (V *p, V *mask) | |
23 { | |
24 V a = { 1, 2, 3, 0 }; | |
25 *p = __builtin_shuffle (a, *mask); | |
26 } | |
27 | |
28 void | |
29 f4 (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 } |