summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sparc/fpackfix.c
blob: 815bec0cf38eef78079bd3efee29743cb8626e54 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-mcpu=ultrasparc -mvis" } */
typedef int vec32 __attribute__((vector_size(8)));
typedef short vec16 __attribute__((vector_size(4)));

vec16 foo (vec32 a) {
  return __builtin_vis_fpackfix (a);
}

/* { dg-final { scan-assembler "fpackfix\t%" } } */