2018-01-16 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-mult-pattern-1.c
blob764d0e34c320496aa700f9cf1e64e9525383f00c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-require-effective-target vect_shift } */
5 unsigned long int __attribute__ ((aligned (64)))arr[100];
6 int i;
8 void test_for_vectorshifts_via_mul_with_power2_const ()
10 for (i=0; i<=99; i++)
11 arr[i] = arr[i] * 4;
14 void test_for_vectorshifts_via_mul_with_negative_power2_const ()
16 for (i=0; i<=99; i++)
17 arr[i] = arr[i] * (-4);
20 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" {target { ! { vect_int_mult } } } } } */
21 /* { dg-final { scan-tree-dump-times "vect_recog_mult_pattern: detected" 2 "vect" {target { ! { vect_int_mult } } } } } */