annotate gcc/testsuite/gcc.dg/pr44214-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-O2 -freciprocal-math -fdump-tree-ccp1" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 typedef double v2df __attribute__ ((vector_size (2 * sizeof (double))));
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 void do_div (v2df *a, v2df *b)
kono
parents:
diff changeset
7 {
kono
parents:
diff changeset
8 *a = *b / (v2df) { 2.0, 3.0 };
kono
parents:
diff changeset
9 }
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 /* Constant folding should multiply *b by the reciprocals of the
kono
parents:
diff changeset
12 vector elements. The fold does not take place for generic
kono
parents:
diff changeset
13 vectors until the first CCP pass. The string " * " occurs 3
kono
parents:
diff changeset
14 times: one multiply and two indirect parameters. */
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 /* { dg-final { scan-tree-dump-times " \\\* " 3 "ccp1" } } */
kono
parents:
diff changeset
17 /* { dg-final { scan-tree-dump-times " / " 0 "ccp1" } } */