From 00d4ca1c644a1a4c5d35e41a570479096f7a940c Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Thu, 19 Aug 1993 16:17:58 -0700 Subject: [PATCH] (simplify_shift_const... (simplify_shift_const, XOR case): When applying distributive law, use shift_mode and GET_MODE (varop) instead of result_mode. From-SVN: r5189 --- gcc/combine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/combine.c b/gcc/combine.c index 6a39d876bf7..20694090c59 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -7600,12 +7600,12 @@ simplify_shift_const (x, code, result_mode, varop, count) logical expression, make a new logical expression, and apply the inverse distributive law. */ { - rtx lhs = simplify_shift_const (NULL_RTX, code, result_mode, + rtx lhs = simplify_shift_const (NULL_RTX, code, shift_mode, XEXP (varop, 0), count); - rtx rhs = simplify_shift_const (NULL_RTX, code, result_mode, + rtx rhs = simplify_shift_const (NULL_RTX, code, shift_mode, XEXP (varop, 1), count); - varop = gen_binary (GET_CODE (varop), result_mode, lhs, rhs); + varop = gen_binary (GET_CODE (varop), GET_MODE (varop), lhs, rhs); varop = apply_distributive_law (varop); count = 0; -- 2.30.2