summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/ia64/fpreg-2.c
blob: a21bd0fb23168efd9993773b6f8fb8a2afd2f3a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Test __fpreg ABI.  */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "" } */
/* { dg-final { scan-assembler "ldf.fill" } } */
/* { dg-final { scan-assembler "stf.spill" } } */

__fpreg x;

void f (void);

void
g (void)
{
  __fpreg b = x;
  f ();
  x = b;
}

char t1[(sizeof (__fpreg) == sizeof (__float80) ? 1 : -1)];
char t2[(__alignof (__fpreg) == __alignof (__float80) ? 1 : -1)];