1 /* { dg-do compile { target { powerpc64*-*-* && lp64 } } } */
2 /* { dg-require-effective-target powerpc_p9vector_ok } */
3 /* { dg-options "-mdejagnu-cpu=power9 -Og" } */
4 
5 /* PR target/81348: Compiler died in doing short->float conversion due to using
6    the wrong register in a define_split.  */
7 
8 int a;
9 short b;
10 float ***c;
11 
d(void)12 void d(void)
13 {
14         int e = 3;
15 
16         if (a)
17                 e = b;
18 
19         ***c = e;
20 }
21 
22 /* { dg-final { scan-assembler {\mlxsihzx\M}  } } */
23 /* { dg-final { scan-assembler {\mvextsh2d\M} } } */
24