OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [vector-2.c] - Blame information for rev 859

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
#define vector __attribute__((vector_size(16) ))
2
struct ss
3
{
4
 vector float mVec;
5
};
6
vector float getCapsule(vector int t)
7
{
8
 vector float t1 = (vector float)t;
9
 struct ss y = {t1};
10
 *((float*)&y.mVec) = 1.0;
11
 return y.mVec;
12
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.