From: Fariborz Jahanian Date: Tue, 11 May 2004 20:29:48 +0000 (+0000) Subject: Test for AltiVec function vec_ld, passing a pointer to const vector. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44b2a8daf34d6bf940b432f862da14130857941c;p=gcc.git Test for AltiVec function vec_ld, passing a pointer to const vector. Approved by Aldy Hernandez. From-SVN: r81716 --- diff --git a/gcc/testsuite/g++.dg/ext/altivec-9.C b/gcc/testsuite/g++.dg/ext/altivec-9.C new file mode 100644 index 00000000000..cb7e4bb4e72 --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/altivec-9.C @@ -0,0 +1,13 @@ +/* Test for AltiVec function vec_ld, passing a pointer to const vector */ +/* { dg-do compile { target powerpc*-*-* } } */ +/* { dg-options "-maltivec" } */ + +#include + +typedef vector unsigned char vuc_t; +const vuc_t* p; +vector unsigned char test_vec_ld() +{ + return vec_ld(0,p); +} +