gcc/testsuite/gcc.target/powerpc/const_anchors.c
raw| 1 | /* { dg-do compile { target has_arch_ppc64 } } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | |
| 4 | #define C1 0x2351847027482577ULL |
| 5 | #define C2 0x2351847027482578ULL |
| 6 | |
| 7 | void __attribute__ ((noinline)) foo (long long *a) |
| 8 | { |
| 9 | *a++ = C1; |
| 10 | *a++ = C2; |
| 11 | } |
| 12 | |
| 13 | void __attribute__ ((noinline)) foo1 (long long *a, long long b) |
| 14 | { |
| 15 | *a++ = C1; |
| 16 | if (b) |
| 17 | *a++ = C2; |
| 18 | } |
| 19 | |
| 20 | /* { dg-final { scan-assembler-times {\maddi\M} 2 } } */ |