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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [sparc/] [pdist.c] - Blame information for rev 753

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-mcpu=ultrasparc -mvis" } */
3
typedef long long int64_t;
4
typedef unsigned char vec8 __attribute__((vector_size(8)));
5
 
6
int64_t foo (vec8 a, vec8 b) {
7
  int64_t d = 0;
8
  d = __builtin_vis_pdist (a, b, d);
9
  return d;
10
}
11
 
12
int64_t bar (vec8 a, vec8 b) {
13
  int64_t d = 0;
14
  return __builtin_vis_pdist (a, b, d);
15
}
16
 
17
int64_t baz (vec8 a, vec8 b, int64_t d) {
18
  int64_t e = __builtin_vis_pdist (a, b, d);
19
  return e + d;
20
}
21
 
22
/* { 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.