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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20030821-1.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* PR target/11805.  */
2
 
3
/* Consider the following sequence.
4
 
5
     (set (cc0)
6
          (and:HI (reg:HI 0)
7
                  (const_int 1)))
8
 
9
     (set (pc)
10
          (if_then_else (le (cc0)
11
                            (const_int 0))
12
                        (label_ref 17)
13
                        (pc)))
14
 
15
   On h8300, the first insn does not set the overflow flag, but the
16
   second requires the overflow flag.  As a result, when the final
17
   wants to output the jump insn, it cannot find a test insn that
18
   gives appropriate condition flags.  */
19
 
20
unsigned char
21
foo (unsigned char a)
22
{
23
  return (a & 1) > 0;
24
}

powered by: WebSVN 2.1.0

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