match: Optimize `max(a,b) == 0` to `(a|b) == 0` for unsigned [PR115275]
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / vectorize2.c
blob427e2d401c05e4cb290a805754f1cca199791359
1 /* { dg-do compile } */
2 /* { dg-require-effective-target ilp32 } */
3 /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse2 -mfpmath=sse -mtune=generic" } */
5 double a[256];
6 int b[256];
7 unsigned short c[256];
9 extern long lrint (double);
11 void foo(void)
13 int i;
15 for (i=0; i<256; ++i)
16 b[i] = lrint (a[i]);
19 void bar(void)
21 int i;
23 for (i=0; i<256; ++i)
25 b[i] = lrint (a[i]);
26 c[i] += c[i];
30 /* { dg-final { scan-assembler "cvtpd2dq" } } */