]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/pr44214-1.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr44214-1.c
CommitLineData
add6207a
BS
1/* { dg-do compile } */
2/* { dg-options "-O2 -freciprocal-math -fdump-tree-ccp1" } */
3
7aea3d36 4typedef double v2df __attribute__ ((vector_size (2 * sizeof (double))));
add6207a
BS
5
6void do_div (v2df *a, v2df *b)
7{
8 *a = *b / (v2df) { 2.0, 3.0 };
9}
10
11/* Constant folding should multiply *b by the reciprocals of the
12 vector elements. The fold does not take place for generic
13 vectors until the first CCP pass. The string " * " occurs 3
14 times: one multiply and two indirect parameters. */
15
16/* { dg-final { scan-tree-dump-times " \\\* " 3 "ccp1" } } */
17/* { dg-final { scan-tree-dump-times " / " 0 "ccp1" } } */