Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-mult-pattern-2.c
blob77e8cff792dc2c9a41902bd1e73e9acdd6721a67
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 negative_test_for_vectorshifts_via_mul_with_const ()
10 for (i=0; i<=99; i++)
11 arr[i] = arr[i] * 123;
14 void negative_test_for_vectorshifts_via_mul_with_negative_const ()
16 for (i=0; i<=99; i++)
17 arr[i] = arr[i] * (-123);
20 void negative_test_for_vectorshifts_via_mul_with_varable (int x)
22 for (i=0; i<=99; i++)
23 arr[i] = arr[i] * x;
27 /* { dg-final { scan-tree-dump-times "vectorized 0 loops" 3 "vect" {target { ! { vect_int_mult } } } } } */
28 /* { dg-final { scan-tree-dump-not "vect_recog_mult_pattern: detected" "vect" {target { ! { vect_int_mult } } } } } */