1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* Verify that overloaded built-ins for vec_st with float
inputs produce the right code. */
/* { dg-do compile } */
/* { dg-options "-maltivec -O2" } */
/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
void
testst_1 (vector float vf1, int i1, vector float * vfp)
{
return vec_st(vf1, i1, vfp);
}
void
testst_2 (vector float vf1, int i1, float * fp)
{
return vec_st(vf1, i1, fp);
}
void
testst_cst1 (vector float vf1, int i1, vector float * vfp)
{
return vec_st(vf1, 16, vfp);
}
void
testst_cst2 (vector float vf1, int i1, float * fp)
{
return vec_st(vf1, 24, fp);
}
/* { dg-final { scan-assembler-times {\m(?:stvx|stxv|stxvx)\M} 4 } } */
|