aboutsummaryrefslogtreecommitdiff
path: root/gcc/simplify-rtx.c
diff options
context:
space:
mode:
authorGeoff Keating <geoffk@cygnus.com>2000-07-17 08:41:05 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2000-07-17 08:41:05 +0000
commit3b15076f3646f5421c5476264b2534182553e8aa (patch)
treeb78d162dd68eb8daa39ce376a44c7a1347b5e8cb /gcc/simplify-rtx.c
parent97f2b269a29f9ff15a3a8dc071dc9a9402055d56 (diff)
downloadgcc-3b15076f3646f5421c5476264b2534182553e8aa.zip
gcc-3b15076f3646f5421c5476264b2534182553e8aa.tar.gz
gcc-3b15076f3646f5421c5476264b2534182553e8aa.tar.bz2
simplify-rtx.c (simplify_relational_operation): Two signed values with equal high words are less/greater than each other if...
* simplify-rtx.c (simplify_relational_operation): Two signed values with equal high words are less/greater than each other if their low words are less/greater when considered as unsigned. From-SVN: r35080
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r--gcc/simplify-rtx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index 4a7a3a6..7426949 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -1792,8 +1792,8 @@ simplify_relational_operation (code, mode, op0, op1)
}
equal = (h0u == h1u && l0u == l1u);
- op0lt = (h0s < h1s || (h0s == h1s && l0s < l1s));
- op1lt = (h1s < h0s || (h1s == h0s && l1s < l0s));
+ op0lt = (h0s < h1s || (h0s == h1s && l0u < l1u));
+ op1lt = (h1s < h0s || (h1s == h0s && l1u < l0u));
op0ltu = (h0u < h1u || (h0u == h1u && l0u < l1u));
op1ltu = (h1u < h0u || (h1u == h0u && l1u < l0u));
}