/* Verify that overloaded built-ins for vec_abs with int inputs produce the right results when -mcpu=power9 is specified. */ /* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-maltivec -O2 -mcpu=power9 -fwrapv" } */ /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */ #include vector signed int test1 (vector signed int x) { return vec_abs (x); } /* { dg-final { scan-assembler-times "vnegw" 1 } } */ /* { dg-final { scan-assembler-times "vmaxsw" 1 } } */