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