Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / ext / altivec-2.C
blob24a0ef228a804aa390658da42d66cd4233634842
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "*" } { "" } } */
3 /* { dg-options "-maltivec -Wall" } */
5 /* This test checks if AltiVec builtins accept const-qualified
6    arguments.  */
8 #include <altivec.h>
9 #include "altivec_check.h"
11 int main (int argc, const char * argv[])
13   int i;
14   const float cf = 1.0;
15   vector float v;
16   const vector float cv = (vector float){1.0, 2.0, 3.0, 4.0};
18   altivec_check ();
20   vec_dst(&cv, i, 0);
21   v = vec_ld(0, &cv);   
22   v = vec_lde(0, &cf);
23   vec_lvsl(0, &cf);
24   
25   return 0;