1 /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_p8vector_ok } */
4 /* { dg-options "-mdejagnu-cpu=power8 -O2" } */
5
6 typedef long V __attribute__((__vector_size__(32)));
7
8 extern void foo (V *, V*);
9
10 /* This test generated an failure in emit_move_insn. */
11
12 void
13 foo(V *p, V *q)
14 {
15 V v = *q;
16 *p = v << v[0];
17 }
18
19 /* { dg-final { scan-assembler-times "vsld" 2 } } */