aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/fold-vec-abs-int.c
blob: 8f0eb4d2a5b7636146b6718ad3d0c1b1487756a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Verify that overloaded built-ins for vec_abs with int
   inputs produce the right results.  */

/* { dg-do compile } */
/* { dg-options "-maltivec -O2" } */
/* { dg-require-effective-target powerpc_altivec } */

#include <altivec.h>

vector signed int
test1 (vector signed int x)
{
  return vec_abs (x);
}

/* scan-assembler entries moved to fold-vec-abs-int.p*.c files. */