Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr49030.c
blobedd0c3629f284c26187ca91b1362473481d9152a
1 /* { dg-require-effective-target int32plus } */
3 void
4 sample_move_d32u24_sS (char *dst, float *src, unsigned long nsamples,
5 unsigned long dst_skip)
7 long long y;
8 while (nsamples--)
10 y = (long long) (*src * 8388608.0f) << 8;
11 if (y > 2147483647) {
12 *(int *) dst = 2147483647;
13 } else if (y < -2147483647 - 1) {
14 *(int *) dst = -2147483647 - 1;
15 } else {
16 *(int *) dst = (int) y;
18 dst += dst_skip;
19 src++;