[RS6000] Tests that use int128_t and -m32
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-st-float.c
blob61780fb308b295680ec087ece219a82769b504f3
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 {\m(?:stvx|stxv|stxvx)\M} 4 } } */