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 -fdump-tree-cddce2" } */
|
/* { dg-options "-O1 -fdump-tree-cddce2" } */
|
|
|
extern void abort (void);
|
extern void abort (void);
|
|
|
struct rtx_def;
|
struct rtx_def;
|
typedef struct rtx_def *rtx;
|
typedef struct rtx_def *rtx;
|
enum rtx_code
|
enum rtx_code
|
{
|
{
|
UNKNOWN,
|
UNKNOWN,
|
CODE_LABEL,
|
CODE_LABEL,
|
NOTE,
|
NOTE,
|
LAST_AND_UNUSED_RTX_CODE = 256
|
LAST_AND_UNUSED_RTX_CODE = 256
|
};
|
};
|
typedef union rtunion_def rtunion;
|
typedef union rtunion_def rtunion;
|
struct rtx_def
|
struct rtx_def
|
{
|
{
|
enum rtx_code code:16;
|
enum rtx_code code:16;
|
};
|
};
|
void
|
void
|
delete_dead_jumptables ()
|
delete_dead_jumptables ()
|
{
|
{
|
rtx insn, next;
|
rtx insn, next;
|
if (insn->code == CODE_LABEL)
|
if (insn->code == CODE_LABEL)
|
{
|
{
|
rtx const _rtx = insn;
|
rtx const _rtx = insn;
|
if (_rtx->code != CODE_LABEL && _rtx->code != NOTE)
|
if (_rtx->code != CODE_LABEL && _rtx->code != NOTE)
|
abort ();
|
abort ();
|
}
|
}
|
;
|
;
|
}
|
}
|
|
|
/* There should be no loads of ->code. If any exist, then we failed to
|
/* There should be no loads of ->code. If any exist, then we failed to
|
optimize away all the IF statements and the statements feeding
|
optimize away all the IF statements and the statements feeding
|
their conditions. */
|
their conditions. */
|
/* { dg-final { scan-tree-dump-times "->code" 0 "cddce2"} } */
|
/* { dg-final { scan-tree-dump-times "->code" 0 "cddce2"} } */
|
|
|
/* There should be no IF statements. */
|
/* There should be no IF statements. */
|
/* { dg-final { scan-tree-dump-times "if " 0 "cddce2"} } */
|
/* { dg-final { scan-tree-dump-times "if " 0 "cddce2"} } */
|
|
|
/* { dg-final { cleanup-tree-dump "cddce2" } } */
|
/* { dg-final { cleanup-tree-dump "cddce2" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.