comparison gcc/testsuite/c-c++-common/pr72747-2.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* { dg-do compile } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-options "-c -maltivec -fdump-tree-gimple" } */
4
5 /* PR 72747: test that cascaded definition is happening for non constants. */
6
7 void foo ()
8 {
9 extern int i;
10 __vector int v,w;
11 v = w = (vector int) { i };
12 }
13
14 int main (int argc, char *argv[])
15 {
16 return 0;
17 }
18 /* { dg-final { scan-tree-dump-times " w = {i.0_1}" 1 "gimple" } } */