summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sparc/fpack32.c
blob: 031372e219ae58083d64f6b6a6e8cbc74e523b94 (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 unsigned char vec8 __attribute__((vector_size(8)));

vec8 foo (vec32 a, vec8 b) {
  return __builtin_vis_fpack32 (a, b);
}

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