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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [vrp28.c] - Blame information for rev 298

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-vrp1" } */
3
 
4
int f(_Bool a)
5
{
6
  int t = a;
7
  if (t != 2)
8
   return 0;
9
  return 1;
10
}
11
 
12
int f1(unsigned char a)
13
{
14
  int t = a;
15
  if (t != 256)
16
   return 0;
17
  return 1;
18
}
19
 
20
int f3 (unsigned char c)
21
{
22
  int i = c;
23
  if (i < 0 || i > 255)
24
    return -1;
25
  else
26
    return 0;
27
}
28
 
29
/* { dg-final { scan-tree-dump-times "if " 0 "vrp1" } } * /
30
/* { dg-final { cleanup-tree-dump "vrp1" } } */
31
 
32
 

powered by: WebSVN 2.1.0

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