1 /* { dg-do compile } */ 2 /* { dg-options "-O1 -fdump-tree-optimized" } */ 3 nem1_phi(unsigned long a)4int nem1_phi (unsigned long a) { return a ? -1 : 0; } eqm1_phi(unsigned long a)5int eqm1_phi (unsigned long a) { return a ? 0 : -1; } 6 spaceship1(long a)7int spaceship1 (long a) { return a > 0 ? 1 : a < 0 ? -1 : 0; } spaceship2(long a)8int spaceship2 (long a) { return a > 0 ? 1 : a == 0 ? 0 : -1; } 9 10 /* { dg-final { scan-tree-dump-times " = -\[^\r\n\]*_.;" 4 "optimized"} } */ 11