[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr88845.c
blob002690a1be1e47d4f1fa902d10fcc7c9bfa80c4b
1 /* { dg-do compile { target powerpc*-*-linux* } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-options "-mdejagnu-cpu=power8 -mvsx -O2" } */
5 /* { dg-final { scan-assembler {\mmtvsrd\M} { target { lp64 } } } } */
6 /* { dg-final { scan-assembler {\mxscvspdpn\M} { target { lp64 } } } } */
8 /* Verify that we do not ICE and that we generate a direct move
9 for float types when compiling for 64-bit. */
11 struct a {
12 unsigned ui;
13 float f;
16 void
17 foo (void)
19 float e;
20 struct a s;
21 e = s.f;
22 __asm__("" : : "d" (e));