gcc/testsuite/gcc.target/csky/constpool-2.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-csky-options "-mcpu=ck810f -O1 -mno-constpool" } */ |
| 3 | |
| 4 | /* Make sure that constant pools are not emitted by the compiler when |
| 5 | -mno-constpool 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-not "\\.long" } } */ |