aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/sparc/pdistn.c
blob: 2f534f70b7d0dff1acccfb4be93e8f2450ad9116 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-mcpu=ultrasparc -mvis3" } */

typedef unsigned char vec8 __attribute__((vector_size(8)));

long foo (vec8 a, vec8 b) {
  return __builtin_vis_pdistn (a, b);
}

/* { dg-final { scan-assembler-times "pdistn\t%" 1 } } */