divcmp-1.c
4.94 KB
-
fold-const.c (fold_div_compare): New function to optimize X/C1 op C2 where op is… · 8dc2384c
fold-const.c (fold_div_compare): New function to optimize X/C1 op C2 where op is a comparison operator and C1... * fold-const.c (fold_div_compare): New function to optimize X/C1 op C2 where op is a comparison operator and C1 and C2 are integer constants into a range check. (fold): Call fold_div_compare. * gcc.c-torture/execute/divcmp-1.c: New test case. * gcc.c-torture/execute/divcmp-2.c: New test case. * gcc.c-torture/execute/divcmp-3.c: New test case. From-SVN: r81645
Roger Sayle committed