[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pragma-optimize.c
blob3b1fc6d7d94bc98f8ed282136ded5fd99d651d99
1 /* { dg-require-ifunc "" } */
2 /* { dg-options "-O2 -mlong-double-128 -mabi=ibmlongdouble" } */
4 extern unsigned long int x;
5 extern float f (float);
6 extern __typeof (f) f_power8;
7 extern __typeof (f) f_power9;
8 extern __typeof (f) f __attribute__ ((ifunc ("f_ifunc")));
9 static __attribute__ ((optimize (1))) __typeof (f) *
10 f_ifunc (void)
12 __typeof (f) *res = x ? f_power9 : f_power8;
13 return res;