xref: /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/altivec-8.c (revision c87b03e512fc05ed6e0222f6fb0ae86264b1d05b)
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-options "-maltivec" } */
6 
7 #include <altivec.h>
8 
9 vector signed short *hannah;
10 
11 int
main()12 main ()
13 {
14   *hannah++ = __builtin_altivec_vspltish (5);
15   *hannah++ = __builtin_altivec_vspltish (6);
16 
17   return 0;
18 }
19