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

extern vec32 foo1(void);
extern vec32 foo2(void);

vec32 bar(void)
{
  return foo1 () - foo2 ();
}

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