Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.target / sparc / pdist-2.c
blob9e061fdfd536b237ecf412da557d55312e4ca98d
1 /* { dg-do compile } */
2 /* { dg-options "-mcpu=ultrasparc -mvis -O1 -fdump-tree-final_cleanup" } */
4 typedef long long int64_t;
5 typedef unsigned char vec8 __attribute__((vector_size(8)));
7 #define _(A) (unsigned char)A
9 int64_t foo () {
10 int64_t d = 2;
11 vec8 a = { _(1), _(2), _(3), _(4), _(5), _(6), _(7), _(255) };
12 vec8 b = { _(2), _(4), _(8), _(16), _(32), _(64), _(128), _(8) };
13 d = __builtin_vis_pdist (a, b, d);
14 return d;
17 /* { dg-final { scan-assembler-not "pdist\t%" } } */
18 /* { dg-final { scan-tree-dump "return 475" "final_cleanup" } } */
19 /* { dg-final { cleanup-tree-dump "final_cleanup" } } */