1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -funsafe-math-optimizations -ffinite-math-only -fdump-tree-optimized-raw" } */ 3 4 int cmp_1(float x)5cmp_1 (float x) 6 { 7 return 5 / x >= 0; 8 } 9 10 int cmp_2(float x)11cmp_2 (float x) 12 { 13 return 1 / x <= 0; 14 } 15 16 int cmp_3(float x)17cmp_3 (float x) 18 { 19 return -2 / x >= 0; 20 } 21 22 int cmp_4(float x)23cmp_4 (float x) 24 { 25 return -5 / x <= 0; 26 } 27 28 /* { dg-final { scan-tree-dump-not "rdiv_expr" "optimized" } } */ 29