1/* { dg-do compile { target powerpc*-*-* } } */ 2/* { dg-require-effective-target powerpc_altivec_ok } */ 3/* { dg-options "-maltivec -O2 -Wall" } */ 4 5 6#define vector __attribute__((__vector_size__(16) )) 7vector int f() 8{ 9 int t = 4; 10 return (vector int){t,t,t,t}; 11} 12vector int f1() 13{ 14 return (vector int){4,4,4,4}; 15} 16 17/* We should be able to materialize the constant vector without 18 any lvewx instructions as it is constant. */ 19/* { dg-final { scan-assembler-not "lvewx" } } */ 20 21