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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [conversion/] [simd1.C] - Blame information for rev 821

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

Line No. Rev Author Line
1 693 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|no known conversion" } */
9
vector signed short vld (int a1, const vector signed short *a2) { return *a2; } /* { dg-message "vld|no known conversion" } */
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
  // { dg-message "candidate" "candidate note" { target *-*-* } 19 }
21
  vss = vld(i, vssp);
22
  vss = vld(i, cvssp);
23
}
24
 
25
/* Ignore a warning that is irrelevant to the purpose of this test.  */
26
/* { 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.