diff options
author | fjahanian <fjahanian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-11 20:29:48 +0000 |
---|---|---|
committer | fjahanian <fjahanian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-11 20:29:48 +0000 |
commit | 1f4e383b279979e51a37c00c7727058af776bc52 (patch) | |
tree | 1ce6da8a7776e5f102f22ec6f4578ba6e5f741c5 | |
parent | 5ee5b31d47d9d32a0ad875cd5f4d1aef0ae04237 (diff) | |
download | gcc-1f4e383b279979e51a37c00c7727058af776bc52.tar.gz |
Test for AltiVec function vec_ld, passing a pointer to const vector.
Approved by Aldy Hernandez.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81716 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/g++.dg/ext/altivec-9.C | 13 |
1 files changed, 13 insertions, 0 deletions
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 <altivec.h> + +typedef vector unsigned char vuc_t; +const vuc_t* p; +vector unsigned char test_vec_ld() +{ + return vec_ld(0,p); +} + |