aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr88965.c
blob: 47be152c09529bcdfcbabee45153fbb41f2d2991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR target/88965 */
/* { dg-do compile } */
/* { dg-options "-O2 -mvsx" } */
/* { dg-require-effective-target powerpc_vsx } */

unsigned int a[16];
unsigned int __attribute__ ((vector_size (16))) b;

void
foo (void)
{
  b = __builtin_vec_vsx_ld (0, &a[0]);
}

void
bar (void)
{
  __builtin_vec_vsx_st (b, 0, &a[0]);
}