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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [conversion/] [simd1.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
 
3
/* Test overload resolution of vector types.
4
   From Janis Johnson and Paolo Bonzini, based on PR/16882 */
5
 
6
#define vector __attribute__((vector_size(16)))
7
 
8
vector signed int vld (int a1, const vector signed int *a2) { return *a2; } /* { dg-error "near match" } */
9
/* { dg-warning "vector returned by ref" "" { target { powerpc*-*-linux* && ilp32 } }  8 } */
10
vector signed short vld (int a1, const vector signed short *a2) { return *a2; } /* { dg-error "near match" } */
11
 
12
extern int i;
13
extern vector signed short vss;
14
extern vector signed char *vscp;
15
extern vector signed short *vssp;
16
extern const vector signed short *cvssp;
17
 
18
void foo ()
19
{
20
  vss = vld(i, vscp);        /* { dg-error "no match" } */
21
  vss = vld(i, vssp);
22
  vss = vld(i, cvssp);
23
}

powered by: WebSVN 2.1.0

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