1 /* Verify that overloaded built-ins for vec_abs with long long
2    inputs produce the right results.  */
3 
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_p8vector_ok } */
6 /* { dg-options "-mpower8-vector -O2 -mcpu=power8" } */
7 
8 #include <altivec.h>
9 
10 vector signed long long
test3(vector signed long long x)11 test3 (vector signed long long x)
12 {
13   return vec_abs (x);
14 }
15 
16 /* { dg-final { scan-assembler-times "vspltisw" 1 } } */
17 /* { dg-final { scan-assembler-times "vsubudm" 1 } } */
18 /* { dg-final { scan-assembler-times "vmaxsd" 1 } } */
19