[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr102059-1.c
blobb969c4c4750a6b8632899397c204ea1da1a4e8fb
1 /* { dg-do compile } */
2 /* -Wno-attributes suppresses always_inline warnings. */
3 /* { dg-options "-O2 -mdejagnu-cpu=power8 -Wno-attributes" } */
5 /* Verify the reduced case from PR102059 won't fail. */
7 __attribute__ ((always_inline)) int
8 foo (int *b)
10 *b += 10;
11 return *b;
14 #pragma GCC target "cpu=power10"
15 int
16 bar (int *a)
18 *a = foo (a);
19 return 0;