aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/fold-vec-st-pixel.c
blob: 5b95cc73d8dd2a6c019ff6d0c97787e7a49dac71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Verify that overloaded built-ins for vec_st* with pixel
   inputs produce the right code.  */

/* { dg-do compile } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-mvsx -O2" } */

#include <altivec.h>

void
testst_1 (vector pixel vp1, int i1, vector pixel * vpp)
{
	return vec_st(vp1, i1, vpp);
}

void
testst_cst1 (vector pixel vp1, int i1, vector pixel * vpp)
{
	return vec_st(vp1, 12, vpp);
}

/* { dg-final { scan-assembler-times {\mstvx\M}  2 } } */