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

vec16 foo(vec16 a, vec16 b)
{
  return a - b;
}

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