URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O1 -fno-tree-fre -fdump-tree-optimized" } */
|
/* { dg-options "-O1 -fno-tree-fre -fdump-tree-optimized" } */
|
|
|
/* Test for SRA. */
|
/* Test for SRA. */
|
|
|
typedef struct teststruct
|
typedef struct teststruct
|
{
|
{
|
double d;
|
double d;
|
char f1;
|
char f1;
|
} teststruct;
|
} teststruct;
|
|
|
|
|
void
|
void
|
copystruct11 (teststruct *param)
|
copystruct11 (teststruct *param)
|
{
|
{
|
static teststruct local;
|
static teststruct local;
|
param->f1 = 0;
|
param->f1 = 0;
|
local = *param;
|
local = *param;
|
if (local.f1 != 0)
|
if (local.f1 != 0)
|
link_error ();
|
link_error ();
|
}
|
}
|
|
|
|
|
/* There should be no reference to link_error. */
|
/* There should be no reference to link_error. */
|
/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail *-*-* } } } */
|
/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail *-*-* } } } */
|
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.