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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [vector-2.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
/* { dg-options "-msse" { target { i?86-*-* x86_64-*-* } } } */
2
#define vector __attribute__((vector_size(16) ))
3
struct ss
4
{
5
 vector float mVec;
6
};
7
vector float getCapsule(vector int t)
8
{
9
 vector float t1 = (vector float)t;
10
 struct ss y = {t1};
11
 *((float*)&y.mVec) = 1.0;
12
 return y.mVec;
13
}

powered by: WebSVN 2.1.0

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