i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr88903-1.c
blob0f78ccc995d5dcd35d5d7ba0f35afdc8bb5a1b2b
1 #include "tree-vect.h"
3 int x[1024];
5 void __attribute__((noinline))
6 foo()
8 for (int i = 0; i < 512; ++i)
10 x[2*i] = x[2*i] << ((i+1) & 31);
11 x[2*i+1] = x[2*i+1] << ((i+1) & 31);
15 int
16 main()
18 check_vect ();
19 for (int i = 0; i < 1024; ++i)
20 x[i] = i;
21 foo ();
22 #pragma GCC novector
23 for (int i = 0; i < 1024; ++i)
24 if (x[i] != i << ((i/2+1) & 31))
25 __builtin_abort ();
26 return 0;