Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-abs-longlong.p8.c
blob4fa0b6db3165eb75a252e40031804c5adbe3a13b
1 /* Verify that overloaded built-ins for vec_abs with long long
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_p8vector_ok } */
6 /* { dg-options "-mpower8-vector -O2 -mcpu=power8" } */
8 #include <altivec.h>
10 vector signed long long
11 test3 (vector signed long long x)
13 return vec_abs (x);
16 /* { dg-final { scan-assembler-times "vspltisw" 1 } } */
17 /* { dg-final { scan-assembler-times "vsubudm" 1 } } */
18 /* { dg-final { scan-assembler-times "vmaxsd" 1 } } */