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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr19055.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-fdump-tree-gimple" } */
3
int f1(int a,int b)
4
{
5
  return (a|b) ^ b;
6
}
7
int f2(int a,int b)
8
{
9
  return (b|a) ^ b;
10
}
11
int f3(int a,int b)
12
{
13
  return b^(a|b);
14
}
15
int f4(int a,int b)
16
{
17
  return b^(b|a);
18
}
19
/* There should be no ^, 4 ~ and 4 &. */
20
/* { dg-final { scan-tree-dump-times "\\^" 0 "gimple"} } */
21
/* { dg-final { scan-tree-dump-times "~" 4 "gimple"} } */
22
/* { dg-final { scan-tree-dump-times "&" 4 "gimple"} } */
23
/* { dg-final { cleanup-tree-dump "gimple" } } */

powered by: WebSVN 2.1.0

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