1/* Origin: Aldy Hernandez  <aldyh@redhat.com>  */
2/* Test rs6000_legitimate_address.  PRE_INC should be invalid.  */
3
4/* { dg-do compile { target powerpc*-*-* } } */
5/* { dg-require-effective-target powerpc_altivec_ok } */
6/* { dg-options "-maltivec" } */
7
8#include <altivec.h>
9
10vector signed short *hannah;
11
12int
13main ()
14{
15  *hannah++ = __builtin_altivec_vspltish (5);
16  *hannah++ = __builtin_altivec_vspltish (6);
17
18  return 0;
19}
20