1 /* Testcase by Martin Michlmayr <tbm@cyrius.com> */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target vect_shift } */
10 typedef __PTRDIFF_TYPE__
intptr_t;
12 void _mix_some_samples (intptr_t buf
, int *mix_buffer
, int mix_size
)
15 signed int *p
= mix_buffer
;
16 for (i
= mix_size
; i
> 0; i
--)
18 *((short *) buf
) = clamp_val ((*p
) + 0x800000);
24 /* { dg-final { cleanup-tree-dump "vect" } } */