(expand_expr, COND_EXPR case): Don't expand "X ? A & 1 : A" as "A & (X != 0)".

From-SVN: r8345
This commit is contained in:
Doug Evans 1994-10-26 22:22:06 +00:00
parent 9ffe483fc1
commit 9fbd9f58d7

View File

@ -5579,8 +5579,7 @@ expand_expr (exp, target, tmode, modifier)
&& (TREE_CODE (binary_op) == PLUS_EXPR
|| TREE_CODE (binary_op) == MINUS_EXPR
|| TREE_CODE (binary_op) == BIT_IOR_EXPR
|| TREE_CODE (binary_op) == BIT_XOR_EXPR
|| TREE_CODE (binary_op) == BIT_AND_EXPR)
|| TREE_CODE (binary_op) == BIT_XOR_EXPR)
&& integer_onep (TREE_OPERAND (binary_op, 1))
&& TREE_CODE_CLASS (TREE_CODE (TREE_OPERAND (exp, 0))) == '<')
{