URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-require-effective-target vect_shift } */
|
/* { dg-require-effective-target vect_shift } */
|
|
|
void
|
void
|
test_1 (void)
|
test_1 (void)
|
{
|
{
|
static unsigned int bm[16];
|
static unsigned int bm[16];
|
int j;
|
int j;
|
for (j = 0; j < 16; j++)
|
for (j = 0; j < 16; j++)
|
bm[j] <<= 8;
|
bm[j] <<= 8;
|
}
|
}
|
|
|
void
|
void
|
test_2 (int a)
|
test_2 (int a)
|
{
|
{
|
static unsigned int bm[16];
|
static unsigned int bm[16];
|
int j;
|
int j;
|
for (j = 0; j < 16; j++)
|
for (j = 0; j < 16; j++)
|
bm[j] <<= a;
|
bm[j] <<= a;
|
}
|
}
|
|
|
void
|
void
|
test_3 (void)
|
test_3 (void)
|
{
|
{
|
static unsigned bm[16];
|
static unsigned bm[16];
|
int am[16];
|
int am[16];
|
int j;
|
int j;
|
for (j = 0; j < 16;j++)
|
for (j = 0; j < 16;j++)
|
bm[j] <<= am[j];
|
bm[j] <<= am[j];
|
}
|
}
|
|
|
/* { dg-final { cleanup-tree-dump "vect" } } */
|
/* { dg-final { cleanup-tree-dump "vect" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.