2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20030821-1.c
blob34700ae181fbfc6703ad74744b6fdc3636555a0d
1 /* PR target/11805. */
3 /* Consider the following sequence.
5 (set (cc0)
6 (and:HI (reg:HI 0)
7 (const_int 1)))
9 (set (pc)
10 (if_then_else (le (cc0)
11 (const_int 0))
12 (label_ref 17)
13 (pc)))
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. */
20 unsigned char
21 foo (unsigned char a)
23 return (a & 1) > 0;