summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sparc/fpadd16.c
blob: 071282d2ec285589fa1cd9fa8eeedf49f257b834 (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 "fpadd16\t%" } } */