builtin-has-attribute-4.c: Skip on 32-bit hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / gcc.dg / div-cmp-1.c
blobcd1a5cd3d6fee5a10e9859ca99b344fa3fdb7f5f
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -funsafe-math-optimizations -fdump-tree-optimized-raw" } */
4 int
5 cmp_mul_1 (float x)
7 return x * 3 <= 100;
10 int
11 cmp_mul_2 (float x)
13 return x * -5 > 100;
16 int
17 div_cmp_1 (float x, float y)
19 return x / 3 <= y;
22 int
23 div_cmp_2 (float x, float y)
25 return x / 3 <= 1;
28 /* { dg-final { scan-tree-dump-times "mult_expr" 1 "optimized" } } */
29 /* { dg-final { scan-tree-dump-not "rdiv_expr" "optimized" } } */