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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [fold-plusnot-1.c] - Blame information for rev 708

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR middle-end/30322 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -fdump-tree-original" } */
4
 
5
int test1(int a)
6
{
7
  return a + ~a;
8
}
9
 
10
int test2(int b)
11
{
12
  return ~b + b;
13
}
14
 
15
unsigned int test3(unsigned int c)
16
{
17
  return c + ~c;
18
}
19
 
20
unsigned int test4(unsigned int d)
21
{
22
  return ~d + d;
23
}
24
 
25
/* { dg-final { scan-tree-dump-times "\\+ a" 0 "original" } } */
26
/* { dg-final { scan-tree-dump-times "\\+ b" 0 "original" } } */
27
/* { dg-final { scan-tree-dump-times "\\+ c" 0 "original" } } */
28
/* { dg-final { scan-tree-dump-times "\\+ d" 0 "original" } } */
29
/* { dg-final { cleanup-tree-dump "original" } } */
30
 

powered by: WebSVN 2.1.0

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