blob: 22eec38f25efc1f3023915f261954a289b2a8a8e [file] [log] [blame]
/* Verify that overloaded built-ins for vec_abs with int
inputs produce the right results. */
/* { dg-do compile } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2 -fwrapv" } */
#include <altivec.h>
vector signed int
test1 (vector signed int x)
{
return vec_abs (x);
}
/* scan-assembler stanzas moved to fold-vec-abs-int-fwrapv.p*.c tests. */