aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/csky/constpool-2.c
blob: d654420bc3f35973fed3943dd22056aca3f8c1a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-csky-options "-mcpu=ck810f -O1 -mconstpool" } */

/* Make sure that constant pools are emitted by the compiler when
   -mconstpool is provided.  */

void f (unsigned int *u, long long int *l, float *f, double *d)
{
  *u = 0xdeadbeef;
  *l = 0xcafef00dc0ffeeULL;
  *f = 3.14159F;
  *d = 2.718281828459;
}

/* { dg-final { scan-assembler-times "\\.long" 6 } } */