2 patch-466.c - tests for some peephole optimizer rules from patch #466
3 to optimize theuse of MCs-51 bit instructions.
14 uint8_t get_bleh (uint8_t x
)
19 return (!x0
| !x1
) ? 0xFF : 0x00;
26 ASSERT (get_bleh (0) == 0xff);
27 ASSERT (get_bleh (1) == 0x00);
31 ASSERT (get_bleh (0) == 0xff);
32 ASSERT (get_bleh (1) == 0xff);
36 ASSERT (get_bleh (0) == 0xff);
37 ASSERT (get_bleh (1) == 0xff);
41 ASSERT (get_bleh (0) == 0x00);
42 ASSERT (get_bleh (1) == 0xff);