Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr33846.c
blobf31e207bdef8d73aa073a6313c4f5e331f5ec1b2
1 /* Testcase by Martin Michlmayr <tbm@cyrius.com> */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target vect_shift } */
5 int clamp_val (int i)
7 return ~i >> 31;
10 void _mix_some_samples (long buf, int *mix_buffer, int mix_size)
12 int i;
13 signed int *p = mix_buffer;
14 for (i = mix_size ; i > 0; i--)
16 *((short *) buf) = clamp_val ((*p) + 0x800000);
17 buf += 2;
18 p++;
22 /* { dg-final { cleanup-tree-dump "vect" } } */