OSDN Git Service

(simplify_shift_const, case AND): When remaking binary operation, do
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Feb 1994 00:08:15 +0000 (00:08 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Feb 1994 00:08:15 +0000 (00:08 +0000)
it in SHIFT_MODE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6552 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/combine.c

index 283bdf0..4317341 100644 (file)
@@ -7961,7 +7961,7 @@ simplify_shift_const (x, code, result_mode, varop, count)
            rtx rhs = simplify_shift_const (NULL_RTX, code, shift_mode,
                                            XEXP (varop, 1), count);
 
-           varop = gen_binary (GET_CODE (varop), GET_MODE (varop), lhs, rhs);
+           varop = gen_binary (GET_CODE (varop), shift_mode, lhs, rhs);
            varop = apply_distributive_law (varop);
 
            count = 0;