re PR tree-optimization/19060 (Miscompiling of if and "long long")
authorJakub Jelinek <jakub@redhat.com>
Sat, 15 Jan 2005 09:46:10 +0000 (10:46 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 15 Jan 2005 09:46:10 +0000 (10:46 +0100)
commit75b9aa9f27103dfe395589744695c77c42d51c0d
treeeee50ef2164840adf38bebf57be5788622dbb666
parent4ba9f2a1e4ff069b076c47ec74e84d4a15380f3a
re PR tree-optimization/19060 (Miscompiling of if and "long long")

PR tree-optimization/19060
* tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
(simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
and handle extract_range_from_cond returning false.
* fold-const.c (fold): Optimize comparisons with min/max even for
width > HOST_BITS_PER_WIDE_INT.

* gcc.c-torture/execute/20050104-1.c: New test.

From-SVN: r93692
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20050104-1.c [new file with mode: 0644]
gcc/tree-ssa-dom.c