sse-recip-vec.c: Move arrays out of test function to enable vectorization.
* gcc.target/i386/sse-recip-vec.c: Move arrays out of test function to enable vectorization. * gcc.target/i386/sse2-lrint-vec.c: Ditto. * gcc.target/i386/sse2-lrintf-vec.c: Ditto. From-SVN: r149658
This commit is contained in:
parent
f05cae0de4
commit
bb116e722e
|
@ -1,3 +1,10 @@
|
|||
2009-07-14 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
* gcc.target/i386/sse-recip-vec.c: Move arrays out of test
|
||||
function to enable vectorization.
|
||||
* gcc.target/i386/sse2-lrint-vec.c: Ditto.
|
||||
* gcc.target/i386/sse2-lrintf-vec.c: Ditto.
|
||||
|
||||
2009-07-14 Jason Merrill <jason@redhat.com>
|
||||
|
||||
PR c++/40740
|
||||
|
|
|
@ -7,15 +7,15 @@ extern float sqrtf (float);
|
|||
|
||||
#define N 8
|
||||
|
||||
float a[N] = { 0.f, 18.f, 108.f, 324.f, 720.f, 1944.f, 3087.f, 5832.f };
|
||||
float b[N] = { 1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, 8.f };
|
||||
float r[N];
|
||||
|
||||
float rc[N] = { 0.f, 3.f, 6.f, 9.f, 12.f, 18.f, 21.f, 27.f };
|
||||
|
||||
static void
|
||||
sse_test (void)
|
||||
{
|
||||
float a[N] = { 0.f, 18.f, 108.f, 324.f, 720.f, 1944.f, 3087.f, 5832.f };
|
||||
float b[N] = { 1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, 8.f };
|
||||
float r[N];
|
||||
|
||||
float rc[N] = { 0.f, 3.f, 6.f, 9.f, 12.f, 18.f, 21.f, 27.f };
|
||||
|
||||
int i;
|
||||
|
||||
for (i = 0; i < N; i++)
|
||||
|
|
|
@ -7,12 +7,12 @@ extern long lrint (double);
|
|||
|
||||
#define N 32
|
||||
|
||||
double a[N] = {0.4,3.5,6.6,9.4,12.5,15.6,18.4,21.5,24.6,27.4,30.5,33.6,36.4,39.5,42.6,45.4,0.5,3.6,6.4,9.5,12.6,15.4,18.5,21.6,24.4,27.5,30.6,33.4,36.5,39.6,42.4,45.5};
|
||||
long r[N];
|
||||
|
||||
static void
|
||||
sse2_test (void)
|
||||
{
|
||||
double a[N] = {0.4,3.5,6.6,9.4,12.5,15.6,18.4,21.5,24.6,27.4,30.5,33.6,36.4,39.5,42.6,45.4,0.5,3.6,6.4,9.5,12.6,15.4,18.5,21.6,24.4,27.5,30.6,33.4,36.5,39.6,42.4,45.5};
|
||||
long r[N];
|
||||
|
||||
int i;
|
||||
|
||||
for (i = 0; i < N; i++)
|
||||
|
|
|
@ -7,12 +7,12 @@ extern long lrintf (float);
|
|||
|
||||
#define N 32
|
||||
|
||||
float a[N] = {0.4,3.5,6.6,9.4,12.5,15.6,18.4,21.5,24.6,27.4,30.5,33.6,36.4,39.5,42.6,45.4,0.5,3.6,6.4,9.5,12.6,15.4,18.5,21.6,24.4,27.5,30.6,33.4,36.5,39.6,42.4,45.5};
|
||||
long r[N];
|
||||
|
||||
static void
|
||||
sse2_test (void)
|
||||
{
|
||||
float a[N] = {0.4,3.5,6.6,9.4,12.5,15.6,18.4,21.5,24.6,27.4,30.5,33.6,36.4,39.5,42.6,45.4,0.5,3.6,6.4,9.5,12.6,15.4,18.5,21.6,24.4,27.5,30.6,33.4,36.5,39.6,42.4,45.5};
|
||||
long r[N];
|
||||
|
||||
int i;
|
||||
|
||||
for (i = 0; i < N; i++)
|
||||
|
|
Loading…
Reference in New Issue