rtl: Validate subreg info when optimizing vec_select.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / vect-abs-s16.c
blob266599f8ea2233d78dceec72f165192ed74553ce
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-vectorize -msse2 -mno-sse3 -fdump-tree-vect-details" } */
4 int abs (int);
6 void test (short* a, short* b)
8 int i;
9 for (i = 0; i < 10000; ++i)
10 a[i] = abs (b[i]);
14 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */