OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [sra-1.C] - Diff between revs 301 and 384

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

Rev 301 Rev 384
/* https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=223576 */
/* https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=223576 */
/* SRA failed to canonicalize bit-field types, introducing type
/* SRA failed to canonicalize bit-field types, introducing type
   mismatches.  */
   mismatches.  */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-options "-O2" } */
struct A
struct A
{
{
  int a:16;
  int a:16;
  /* These dummy bit-fields are here to prevent GCC 4.2+ from merging
  /* These dummy bit-fields are here to prevent GCC 4.2+ from merging
     the bit-field compares into a single word compare, which disables
     the bit-field compares into a single word compare, which disables
     SRA.  */
     SRA.  */
  int a2:16;
  int a2:16;
  int a3:16;
  int a3:16;
  int a4:16;
  int a4:16;
  int b:8;
  int b:8;
  bool operator==(A const x) const
  bool operator==(A const x) const
  {
  {
    return (this->a == x.a && this->b == x.b);
    return (this->a == x.a && this->b == x.b);
  }
  }
};
};
bool
bool
foo (A const x, A const y)
foo (A const x, A const y)
{
{
  return x == y;
  return x == y;
}
}
 
 

powered by: WebSVN 2.1.0

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