1 /* { dg-do compile } */
2 /* { dg-options "-mcpu=ultrasparc -mvis" } */
3 typedef long long int64_t;
4 typedef unsigned char vec8
__attribute__((vector_size(8)));
6 int64_t foo (vec8 a
, vec8 b
) {
8 d
= __builtin_vis_pdist (a
, b
, d
);
12 int64_t bar (vec8 a
, vec8 b
) {
14 return __builtin_vis_pdist (a
, b
, d
);
17 int64_t baz (vec8 a
, vec8 b
, int64_t d
) {
18 int64_t e
= __builtin_vis_pdist (a
, b
, d
);
22 /* { dg-final { scan-assembler-times "pdist\t%" 3 } } */