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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [vrp50.c] - Blame information for rev 749

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-vrp1" } */
3
 
4
int
5
foo (unsigned int i, unsigned int j)
6
{
7
  i &= 15;
8
  j &= 15;
9
  i += 1024;
10
  j += 2048;
11
  i &= j;
12
  return i < 16;
13
}
14
 
15
int
16
bar (int i)
17
{
18
  int c = 2;
19
  c &= i > 6;
20
  return c == 0;
21
}
22
 
23
int baz (int x, int y)
24
{
25
  x &= 15;
26
  y &= 15;
27
  x += 4;
28
  y += 16;
29
  x &= y;
30
  return x < 20;
31
}
32
 
33
/* { dg-final { scan-tree-dump-times "return 1;" 3 "vrp1" } } */
34
/* { dg-final { cleanup-tree-dump "vrp1" } } */

powered by: WebSVN 2.1.0

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