From 44b2a8daf34d6bf940b432f862da14130857941c Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Tue, 11 May 2004 20:29:48 +0000 Subject: [PATCH] Test for AltiVec function vec_ld, passing a pointer to const vector. Approved by Aldy Hernandez. From-SVN: r81716 --- gcc/testsuite/g++.dg/ext/altivec-9.C | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 gcc/testsuite/g++.dg/ext/altivec-9.C 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); +} + -- 2.30.2