/* { dg-require-effective-target vect_int } */ #include #include "tree-vect.h" #define N 64 #define DOT1 43680 #define DOT2 43680 #define DOT3 43680 unsigned char X[N] __attribute__ ((__aligned__(16))); unsigned char Y[N] __attribute__ ((__aligned__(16))); /* char->short->int dot product. Detected as a dot-product pattern. Should be vectorized on targets that support dot-product for unsigned chars. */ unsigned int foo1(int len) { int i; unsigned int result = 0; unsigned short prod; for (i=0; ishort->short dot product. Detected as a dot-product pattern. Should be vectorized on targets that support dot-product for unsigned chars. This test currently fails to vectorize on targets that support dot-product of chars only when the accumulator is int. */ unsigned short foo2(int len) { int i; unsigned short result = 0; for (i=0; iint->int dot product. Not detected as a dot-product. Doesn't get vectorized due to presence of type converisons. */ unsigned int foo3(int len) { int i; unsigned int result = 0; for (i=0; i