gcc/testsuite/gcc.target/powerpc/cbranchcc4-2.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-rtl-ce1" } */ |
| 3 | /* { dg-final { scan-rtl-dump "noce_try_store_flag_constants" "ce1" } } */ |
| 4 | |
| 5 | /* The inner branch should be detected by ifcvt then be converted to a setcc |
| 6 | with a plus by noce_try_store_flag_constants. */ |
| 7 | |
| 8 | int test (unsigned int a, unsigned int b) |
| 9 | { |
| 10 | return (a < b ? 0 : (a > b ? 2 : 1)); |
| 11 | } |