Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.target/powerpc/fold-vec-st-double.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Verify that overloaded built-ins for vec_st with double 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 double vd1, int i1, vector double * vdp) { return vec_st(vd1, i1, vdp); } void testst_cst1 (vector double vd1, int i1, vector double * vdp) { return vec_st(vd1, 12, vdp); } /* { dg-final { scan-assembler-times {\mstvx\M} 2 } } */