1/* { dg-do compile } */
2/* { dg-options "-mcpu=ultrasparc -mvis" } */
3typedef short vec16 __attribute__((vector_size(8)));
4typedef unsigned char vec8 __attribute__((vector_size(4)));
5
6vec16 foo (vec8 a) {
7  return __builtin_vis_fexpand (a);
8}
9
10/* { dg-final { scan-assembler "fexpand\t%" } } */
11