OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [sparc/] [pdist-2.c] - Blame information for rev 378

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

Line No. Rev Author Line
1 326 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-mcpu=ultrasparc -mvis -O1 -fdump-tree-optimized" } */
3
 
4
typedef long long int64_t;
5
typedef unsigned char vec8 __attribute__((vector_size(8)));
6
 
7
#define _(A) (unsigned char)A
8
 
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;
15
}
16
 
17
/* { dg-final { scan-assembler-not "pdist\t%" } } */
18
/* { dg-final { scan-tree-dump "return 475" "optimized" } } */
19
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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