[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr81348.c
blobc275d5b0c1011e37f362c9545084efd8ece89a08
1 /* { dg-do compile { target lp64 } } */
2 /* { dg-require-effective-target powerpc_vsx_ok } */
3 /* { dg-options "-mdejagnu-cpu=power9 -mvsx -Og" } */
5 /* PR target/81348: Compiler died in doing short->float conversion due to using
6 the wrong register in a define_split. */
8 int a;
9 short b;
10 float ***c;
12 void d(void)
14 int e = 3;
16 if (a)
17 e = b;
19 ***c = e;
22 /* { dg-final { scan-assembler {\mlha\M} } } */
23 /* { dg-final { scan-assembler {\mmtvsrwa\M} } } */