| 1 |
/* Verify that overloaded built-ins for vec_st with |
| 2 |
double inputs produce the right code. */ |
| 3 |
|
| 4 |
/* { dg-do compile } */ |
| 5 |
/* { dg-options "-mvsx -O2" } */ |
| 6 |
/* { dg-require-effective-target powerpc_vsx } */ |
| 7 |
|
| 8 |
#include <altivec.h> |
| 9 |
|
| 10 |
void |
| 11 |
testst_1 (vector double vd1, int i1, vector double * vdp) |
| 12 |
{ |
| 13 |
return vec_st(vd1, i1, vdp); |
| 14 |
} |
| 15 |
|
| 16 |
void |
| 17 |
testst_cst1 (vector double vd1, int i1, vector double * vdp) |
| 18 |
{ |
| 19 |
return vec_st(vd1, 12, vdp); |
| 20 |
} |
| 21 |
|
| 22 |
/* { dg-final { scan-assembler-times {\mstvx\M} 2 } } */ |