Add documentation for musttail attribute
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr71309.c
blobe1cdf9180f8924ea6ea651eea1cdccfa5f3568f4
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mdejagnu-cpu=power9 -mvsx" } */
3 /* { dg-require-effective-target powerpc_vsx } */
4 /* { dg-require-effective-target lp64 } */
6 #define TYPE void*
7 #define TYPE2 void*
9 struct path {
10 TYPE2 mnt;
11 TYPE dentry;
14 struct nameidata {
15 struct path path;
16 struct path root;
19 __attribute__ ((noinline))
20 TYPE foo(struct nameidata *nd)
22 TYPE d;
23 TYPE2 d2;
25 nd->path = nd->root;
26 d = nd->path.dentry;
27 d2 = nd->path.mnt;
28 return d;
31 /* { dg-final { scan-assembler-not {\mlxv\M} } } */
32 /* { dg-final { scan-assembler-not {\mstxv\M} } } */
33 /* { dg-final { scan-assembler-times {\mld\M} 2 } } */
34 /* { dg-final { scan-assembler-times {\mstd\M} 2 } } */