* gcc.target/powerpc/builtins-1-be.c <vclzb>: Rename duplicate test
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-st-float.c
blob5a8fc6670a6953af40ffe76f5d704bfd7cd799dc
1 /* Verify that overloaded built-ins for vec_st with float
2 inputs produce the right code. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_altivec_ok } */
6 /* { dg-options "-maltivec -O2" } */
8 #include <altivec.h>
10 void
11 testst_1 (vector float vf1, int i1, vector float * vfp)
13 return vec_st(vf1, i1, vfp);
16 void
17 testst_2 (vector float vf1, int i1, float * fp)
19 return vec_st(vf1, i1, fp);
22 void
23 testst_cst1 (vector float vf1, int i1, vector float * vfp)
25 return vec_st(vf1, 16, vfp);
28 void
29 testst_cst2 (vector float vf1, int i1, float * fp)
31 return vec_st(vf1, 24, fp);
34 /* { dg-final { scan-assembler-times {\mstvx\M} 4 } } */