2012-04-27 Paolo Bonzini <bonzini@gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / phi-opt-10.c
blob52b5942eb3a8e822e47c0e46ae8444a9da873a89
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
4 int nem1_phi (unsigned long a) { return a ? -1 : 0; }
5 int eqm1_phi (unsigned long a) { return a ? 0 : -1; }
7 int spaceship1 (long a) { return a > 0 ? 1 : a < 0 ? -1 : 0; }
8 int spaceship2 (long a) { return a > 0 ? 1 : a == 0 ? 0 : -1; }
10 /* { dg-final { scan-tree-dump-times " = -D" 4 "optimized"} } */
11 /* { dg-final { cleanup-tree-dump "optimized" } } */