OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.target/] [sparc/] [pdist.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* { dg-do compile } */
2
/* { dg-options "-mcpu=ultrasparc -mvis" } */
3
 
4
typedef long long int64_t;
5
typedef char vec8 __attribute__((vector_size(8)));
6
 
7
int64_t foo (vec8 a, vec8 b) {
8
  int64_t d = 0;
9
  d = __builtin_vis_pdist (a, b, d);
10
  return d;
11
}
12
 
13
int64_t bar (vec8 a, vec8 b) {
14
  int64_t d = 0;
15
  return __builtin_vis_pdist (a, b, d);
16
}
17
 
18
int64_t baz (vec8 a, vec8 b, int64_t d) {
19
  int64_t e = __builtin_vis_pdist (a, b, d);
20
  return e + d;
21
}
22
 
23
/* { dg-final { scan-assembler-times "pdist\t%" 3 } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.