summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sparc/fpsub16.c
blob: 05642dec117c982f37bbbffc9371a0bae52ded60 (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(8)));

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

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