gcc/testsuite/gcc.target/csky/constpool-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-csky-options "-mcpu=ck810f -O1 -mconstpool" } */ |
| 3 | |
| 4 | /* Make sure that constant pools are emitted by the compiler when |
| 5 | -mconstpool is provided. */ |
| 6 | |
| 7 | void f (unsigned int *u, long long int *l, float *f, double *d) |
| 8 | { |
| 9 | *u = 0xdeadbeef; |
| 10 | *l = 0xcafef00dc0ffeeULL; |
| 11 | *f = 3.14159F; |
| 12 | *d = 2.718281828459; |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-assembler-times "\\.long" 6 } } */ |