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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr23455.c] - Diff between revs 298 and 338

Only display areas with differences | Details | Blame | View Log

Rev 298 Rev 338
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
unsigned long outcnt;
unsigned long outcnt;
extern void flush_outbuf(void);
extern void flush_outbuf(void);
 
 
void
void
bi_windup(unsigned int *outbuf, unsigned int bi_buf)
bi_windup(unsigned int *outbuf, unsigned int bi_buf)
{
{
    unsigned long t1 = outcnt;
    unsigned long t1 = outcnt;
    outbuf[t1] = bi_buf;
    outbuf[t1] = bi_buf;
 
 
    unsigned long t2 = outcnt;
    unsigned long t2 = outcnt;
    if (t2 == 16384)
    if (t2 == 16384)
      flush_outbuf();
      flush_outbuf();
 
 
    unsigned long t3 = outcnt;
    unsigned long t3 = outcnt;
    outbuf[t3] = bi_buf;
    outbuf[t3] = bi_buf;
}
}
/* We should eliminate one load of outcnt, which will in turn let us eliminate
/* We should eliminate one load of outcnt, which will in turn let us eliminate
   one multiply of outcnt which will in turn let us eliminate
   one multiply of outcnt which will in turn let us eliminate
   one add involving outcnt and outbuf.  */
   one add involving outcnt and outbuf.  */
/* { dg-final { scan-tree-dump-times "Eliminated: 3" 1 "pre" {target { ! avr-*-* } } } } */
/* { dg-final { scan-tree-dump-times "Eliminated: 3" 1 "pre" {target { ! avr-*-* } } } } */
/* { dg-final { scan-tree-dump-times "Eliminated: 4" 1 "pre" {target {   avr-*-* } } } } */
/* { dg-final { scan-tree-dump-times "Eliminated: 4" 1 "pre" {target {   avr-*-* } } } } */
/* { dg-final { cleanup-tree-dump "pre" } } */
/* { dg-final { cleanup-tree-dump "pre" } } */
 
 

powered by: WebSVN 2.1.0

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