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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [pr27671-2.c] - Blame information for rev 853

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR rtl-optimization/27671.
2
   The combiner used to simplify "a ^ b == a" to "a" via
3
   simplify_relational_operation_1 in simplify-rtx.c.  */
4
/* { dg-do run } */
5
/* { dg-options "-O1" } */
6
/* { dg-options "-O1 -march=pentium4" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
7
 
8
extern void abort (void) __attribute__ ((noreturn));
9
extern void exit (int) __attribute__ ((noreturn));
10
 
11
static void __attribute__ ((noinline))
12
bar (int k)
13
{
14
  int n = k % 2;
15
  if (n == 0)
16
    abort ();
17
}
18
 
19
int
20
main (void)
21
{
22
  bar (1);
23
  exit (0);
24
}

powered by: WebSVN 2.1.0

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