Add documentation for musttail attribute
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr52457.c
blobbe8e8f16d3e2b5971e89d03e9c3f467ae68d56b5
1 /* { dg-do run { target { powerpc*-*-linux* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target vsx_hw } */
4 /* { dg-options "-O1 -mdejagnu-cpu=power7" } */
6 extern void abort (void);
8 typedef long long T;
9 typedef T vl_t __attribute__((vector_size(2 * sizeof (T))));
11 vl_t
12 buggy_func (T x)
14 vl_t w;
15 T *p = (T *)&w;
16 p[0] = p[1] = x;
17 return w;
20 int
21 main(void)
23 vl_t rval;
24 T *pl;
26 pl = (T *) &rval;
27 rval = buggy_func (2);
29 if (pl[0] != 2 || pl[1] != 2)
30 abort ();
32 return 0;