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
|
@ -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…
Reference in New Issue