diff options
| author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-08 17:36:21 +0000 |
|---|---|---|
| committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-08 17:36:21 +0000 |
| commit | 270029e05f691c35acf5069c4769f1abce91497e (patch) | |
| tree | ed0f064da7a01d71c6b87b252c9b06aeea96bed9 /libjava/gnu/java/math | |
| parent | 06ccbfc1c88704fe912fdd9dc055263bc611b334 (diff) | |
| download | ppe42-gcc-270029e05f691c35acf5069c4769f1abce91497e.tar.gz ppe42-gcc-270029e05f691c35acf5069c4769f1abce91497e.zip | |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81645 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/java/math')
0 files changed, 0 insertions, 0 deletions

