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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr41442.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
 
4
typedef struct LINK link;
5
struct LINK
6
{
7
    link* next;
8
};
9
 
10
int haha(link* p1, link* p2)
11
{
12
  if ((p1->next && !p2->next) || p2->next)
13
    return 0;
14
 
15
  return 1;
16
}
17
 
18
/* { dg-final { scan-assembler-times "test|cmp" 2 } } */

powered by: WebSVN 2.1.0

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