]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.target/powerpc/pr96506-1.c
Make MMA builtins use opaque modes
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / powerpc / pr96506-1.c
CommitLineData
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
6extern void bar0();
7extern void bar1();
8extern void bar2();
9extern void bar3();
10
11typedef __vector_pair vpair_t;
12typedef __vector_quad vquad_t;
13
14/* Verify we flag errors on the following. */
15
16void
17foo0 (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
23void
24foo1 (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
30void
31foo2 (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
37void
38foo3 (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}