i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-multitypes-16.c
blobfd17ad7437ed14201b5c333a961d456017f0b67c
1 /* { dg-require-effective-target vect_long_long } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 64
8 char x[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__))) = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63};
10 __attribute__ ((noinline)) int
11 foo (int len, long long *z) {
12 int i;
14 for (i=0; i<len; i++) {
15 z[i] = x[i];
20 int main (void)
22 char i;
23 long long z[N+4];
25 check_vect ();
27 foo (N,z+2);
29 #pragma GCC novector
30 for (i=0; i<N; i++) {
31 if (z[i+2] != x[i])
32 abort ();
35 return 0;
38 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { { vect_unpack } || { vect_variable_length && vect_ext_char_longlong } } } } } */
39 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" { target { { ! vect_unpack } && {! { vect_variable_length && vect_ext_char_longlong } } } } } } */