[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / lhs-3.c
blob9d6bbcf69f7ea6ca7592859977bd111960f48ba5
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-options "-O2 -mdejagnu-cpu=power7" } */
4 /* { dg-final { scan-assembler "ori 2,2,0" } } */
6 /* Test generation of group ending nop in load hit store situation. */
7 typedef union {
8 double val;
9 struct {
10 unsigned int w1;
11 unsigned int w2;
13 } words;
15 unsigned int f (double d)
17 words u;
18 u.val = d;
19 return u.w2;