Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-sums-int.c
blobe1047facbffa69e9bb05e8d3b6e4a4e718b7dfa8
1 /* Verify that overloaded built-ins for vec_sums with int
2 inputs produce the right code. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_altivec_ok } */
6 /* { dg-options "-maltivec -O2" } */
8 #include <altivec.h>
10 vector signed int
11 test_vec_sums (vector signed int vsi2, vector signed int vsi3)
13 return vec_sums (vsi2, vsi3);
16 /* { dg-final { scan-assembler-times "vsumsws" 1 } } */