]> gcc.gnu.org Git - gcc.git/commit - gcc/ChangeLog
re PR rtl-optimization/3995 (i386 optimisation: joining tests)
authorRoger Sayle <roger@eyesopen.com>
Mon, 6 May 2002 22:59:38 +0000 (22:59 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Mon, 6 May 2002 22:59:38 +0000 (22:59 +0000)
commit1f77b5da981dae69e8e8d7ea3dc60ba95150c267
tree42a44a69dbd2f8b714055533a4e34ddf161eabd9
parenta5a49440f74e957e418360804bf270a8ebc9ad8e
re PR rtl-optimization/3995 (i386 optimisation: joining tests)

PR opt/3995
* fold-const.c (sign_bit_p): New function.
(fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
        (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
Reapply fold when converting (A & C) == C into (A & C) != 0.
(fold_binary_op_with_conditional_arg): Fix typo in comment.

testsuite/
* gcc.c-torture/execute/20020506-1.c: New test case.

From-SVN: r53241
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20020506-1.c [new file with mode: 0644]
This page took 0.085854 seconds and 5 git commands to generate.