| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-skip-if "test is specific to ck801" { csky-*-* } { "*" } { "-mcpu=ck801" } } */ |
| 3 |
/* { dg-csky-options "-O1" } */ |
| 4 |
|
| 5 |
/* Make sure that constant pools are emitted by the compiler for ck801. |
| 6 |
If this is deferred to the assembler, the compiler will compute |
| 7 |
incorrect branch offsets. */ |
| 8 |
|
| 9 |
void f (unsigned int *u, long long int *l, float *f, double *d) |
| 10 |
{ |
| 11 |
*u = 0xdeadbeef; |
| 12 |
*l = 0xcafef00dc0ffeeULL; |
| 13 |
*f = 3.14159F; |
| 14 |
*d = 2.718281828459; |
| 15 |
} |
| 16 |
|
| 17 |
/* { dg-final { scan-assembler-times "\\.long" 6 } } */ |