[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / const_anchors.c
blob542e2674b123173603e29fd65a951befb1b14f73
1 /* { dg-do compile { target has_arch_ppc64 } } */
2 /* { dg-options "-O2" } */
4 #define C1 0x2351847027482577ULL
5 #define C2 0x2351847027482578ULL
7 void __attribute__ ((noinline)) foo (long long *a)
9 *a++ = C1;
10 *a++ = C2;
13 void __attribute__ ((noinline)) foo1 (long long *a, long long b)
15 *a++ = C1;
16 if (b)
17 *a++ = C2;
20 /* { dg-final { scan-assembler-times {\maddi\M} 2 } } */