Test for AltiVec function vec_ld, passing a pointer to const vector.
Approved by Aldy Hernandez. From-SVN: r81716
This commit is contained in:
parent
7958a2a62b
commit
44b2a8daf3
1 changed files with 13 additions and 0 deletions
13
gcc/testsuite/g++.dg/ext/altivec-9.C
Normal file
13
gcc/testsuite/g++.dg/ext/altivec-9.C
Normal file
|
@ -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);
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue