aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/forwprop-42.c
blob: 5785e51c0895510ca0747c19fb8345205b15c654 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-forwprop1" } */

typedef unsigned int vec2 __attribute__ ((vector_size (2 * sizeof (unsigned int))));
typedef unsigned int vec1 __attribute__ ((vector_size (sizeof (unsigned int))));

vec1 foo (vec2 x)
{
	return (vec1) x[1];
}

/* { dg-final { scan-tree-dump-not "VIEW_CONVERT_EXPR" "forwprop1" } } */