summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr79268.c
blob: 8e451778227838b1eea340d7688cb481d3de4133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile { target { powerpc64*-*-* && lp64 } } } */
/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
/* { dg-skip-if "" { powerpc*-*-darwin* powerpc-*-aix* } } */
/* { dg-options "-mcpu=power8 -O3" } */

/* Verify that vec_xl and vec_xst accept vector pixel parameters.  */

/* Test case to resolve PR79268.  */

#include <altivec.h>

vector pixel a;

vector pixel
pr79268 (vector pixel *x)
{
  vec_xst (a, 0, x);
  return vec_xl (0, x);
}