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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [conversion/] [simd1.C] - Blame information for rev 320

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

Line No. Rev Author Line
1 301 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-message "vld" } */
9
vector signed short vld (int a1, const vector signed short *a2) { return *a2; } /* { dg-message "vld" } */
10
 
11
extern int i;
12
extern vector signed short vss;
13
extern vector signed char *vscp;
14
extern vector signed short *vssp;
15
extern const vector signed short *cvssp;
16
 
17
void foo ()
18
{
19
  vss = vld(i, vscp);        /* { dg-error "no matching function for call" } */
20
  vss = vld(i, vssp);
21
  vss = vld(i, cvssp);
22
}
23
 
24
/* Ignore a warning that is irrelevant to the purpose of this test.  */
25
/* { dg-prune-output ".*GCC vector returned by reference.*" } */

powered by: WebSVN 2.1.0

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