[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr54240.c
blob300e4f596474daacd05f95abe7a27994d912372f
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -misel -fdump-tree-phiopt-details" } */
4 typedef struct s {
5 int v;
6 int b;
7 struct s *l;
8 struct s *r;
9 } S;
12 int foo(S *s)
14 S *this;
15 S *next;
17 this = s;
18 if (this->b)
19 next = this->l;
20 else
21 next = this->r;
23 return next->v;
26 /* { dg-final { scan-tree-dump "Hoisting adjacent loads" "phiopt2" } } */