aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20040127-1.c
blob: 3295dee97e39f2fcc3d6d58f2b30d8be66454f67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* PR target/10904 */
/* Origin: <kminola@eng.umd.edu> */

/* Verify that the register allocator correctly aligns
   floating-point registers on SPARC64.  */

/* { dg-do assemble } */
/* { dg-options "-std=gnu17 -O2" } */

extern int foo1();
extern int foo2();

void foo(int n, int b)
{
  int i, a;

  foo1();

  a = (long)(b * ((double) 0.1));

  for (i=0; i < n; i++) {
    foo2(a);
  }
}