blob: b998efa01c40ee8fb06984fbc3fd448bac68a936 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/* PR target/96506 */
/* { dg-do compile } */
/* { dg-require-effective-target power10_ok } */
/* { dg-options "-mdejagnu-cpu=power10 -O2 -std=gnu17" } */
extern void bar0();
extern void bar1();
extern void bar2();
extern void bar3();
typedef __vector_pair vpair_t;
typedef __vector_quad vquad_t;
/* Verify we flag errors on the following. */
void
foo0 (void)
{
__vector_pair v;
bar0 (v); /* { dg-error "invalid use of MMA operand of type .__vector_pair. as a function parameter" } */
}
void
foo1 (void)
{
vpair_t v;
bar1 (v); /* { dg-error "invalid use of MMA operand of type .__vector_pair. as a function parameter" } */
}
void
foo2 (void)
{
__vector_quad v;
bar2 (v); /* { dg-error "invalid use of MMA operand of type .__vector_quad. as a function parameter" } */
}
void
foo3 (void)
{
vquad_t v;
bar3 (v); /* { dg-error "invalid use of MMA operand of type .__vector_quad. as a function parameter" } */
}
|