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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [fold-eqxor-3.c] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-original" } */
/* { dg-options "-O2 -fdump-tree-original" } */
 
 
int test1(int a, int b)
int test1(int a, int b)
{
{
  return (a ^ 2) == 2;
  return (a ^ 2) == 2;
}
}
 
 
int test2(int c, int d)
int test2(int c, int d)
{
{
  return (c ^ 4) != 4;
  return (c ^ 4) != 4;
}
}
 
 
int test3(int e, int f)
int test3(int e, int f)
{
{
  return (e ^ 2) == 6;
  return (e ^ 2) == 6;
}
}
 
 
int test4(int g, int h)
int test4(int g, int h)
{
{
  return (g ^ 6) != 4;
  return (g ^ 6) != 4;
}
}
 
 
/* { dg-final { scan-tree-dump-times "a == 0" 1 "original" } } */
/* { dg-final { scan-tree-dump-times "a == 0" 1 "original" } } */
/* { dg-final { scan-tree-dump-times "c != 0" 1 "original" } } */
/* { dg-final { scan-tree-dump-times "c != 0" 1 "original" } } */
/* { dg-final { scan-tree-dump-times "e == 4" 1 "original" } } */
/* { dg-final { scan-tree-dump-times "e == 4" 1 "original" } } */
/* { dg-final { scan-tree-dump-times "g != 2" 1 "original" } } */
/* { dg-final { scan-tree-dump-times "g != 2" 1 "original" } } */
/* { dg-final { cleanup-tree-dump "original" } } */
/* { dg-final { cleanup-tree-dump "original" } } */
 
 

powered by: WebSVN 2.1.0

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