diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-31 02:40:13 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-31 02:40:13 +0000 |
commit | 0f510c9a06acc854f80a606f34c8f2b6bc8ef237 (patch) | |
tree | c26fb67132b81ba83d6eaed246bea9658b7cfd2a /gcc/hooks.h | |
parent | 7f9dd8e2feacc52268e8b4bb828aed307adbc68b (diff) | |
download | gcc-0f510c9a06acc854f80a606f34c8f2b6bc8ef237.tar.gz |
#define vector __attribute__((vector_size(16) ))
struct struct1 {
union { float a[3]; } vmx;
struct struct2 {
struct2(const struct2& r) {}
} w;
} __attribute__((aligned(16)));
struct struct3 {
vector float vmx;
operator const struct1& () const{
return *reinterpret_cast<const struct1*>(this);
}
};
struct3 func3( struct3 V1);
struct3 func2( void );
void func1( ) {
struct1 vVec = func2() ;
func3 ( (struct3&)vVec );
}
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139820 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/hooks.h')
0 files changed, 0 insertions, 0 deletions