From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2119) id 30B843858005; Mon, 11 Sep 2023 13:38:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 30B843858005 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694439515; bh=3AstjHXP5qq486vBi4fPzlMbCF/O8WulaqSM7BKRxB4=; h=From:To:Subject:Date:From; b=fIH5Ynu9P6Stb4Dqu0URDA1fteCfGWKwGDSHAA7DCjGrQRoAeNGaWascXr4a5gWy1 c05ZDVo41Vk5mVvbs7IIvNfoHJhEmhYmF3IhSYbuNzzCmsGmQi5NUL5trNVYsl5C1g rWtQJ4RWIoOcL+zh/e1UUXFzYWfIODpLmkeUnJ7c= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" From: Jeff Law To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] riscv: bitmanip: Remove duplicate zero_extendhi2 pattern X-Act-Checkin: gcc X-Git-Author: =?utf-8?q?Christoph_M=C3=BCllner?= X-Git-Refname: refs/vendors/riscv/heads/gcc-13-with-riscv-opts X-Git-Oldrev: 727e8d9fdf88a1ea97d8629431d3e841ede1e437 X-Git-Newrev: b775df5cec1a684e3b5d03a6314da19f784f2b53 Message-Id: <20230911133835.30B843858005@sourceware.org> Date: Mon, 11 Sep 2023 13:38:35 +0000 (GMT) List-Id: https://gcc.gnu.org/g:b775df5cec1a684e3b5d03a6314da19f784f2b53 commit b775df5cec1a684e3b5d03a6314da19f784f2b53 Author: Christoph Müllner Date: Fri Sep 8 08:19:32 2023 +0200 riscv: bitmanip: Remove duplicate zero_extendhi2 pattern We currently have two identical zero_extendhi2 patterns: * '*zero_extendhi2_zbb' * '*zero_extendhi2_bitmanip' This patch removes the *_zbb pattern and ensures that all sign- and zero-extensions use the postfix '_bitmanip'. Signed-off-by: Christoph Müllner gcc/ChangeLog: * config/riscv/bitmanip.md (*extend2_zbb): Rename postfix to _bitmanip. (*extend2_bitmanip): Renamed pattern. (*zero_extendhi2_zbb): Remove duplicated pattern. (cherry picked from commit 0c37fef39fa0a8f77ea4fc67d1bbf5067d4bddb9) Diff: --- gcc/config/riscv/bitmanip.md | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/gcc/config/riscv/bitmanip.md b/gcc/config/riscv/bitmanip.md index 1544ef4e1252..431b32922135 100644 --- a/gcc/config/riscv/bitmanip.md +++ b/gcc/config/riscv/bitmanip.md @@ -283,7 +283,7 @@ [(set_attr "type" "bitmanip,load") (set_attr "mode" "")]) -(define_insn "*extend2_zbb" +(define_insn "*extend2_bitmanip" [(set (match_operand:SUPERQI 0 "register_operand" "=r,r") (sign_extend:SUPERQI (match_operand:SHORT 1 "nonimmediate_operand" " r,m")))] @@ -294,17 +294,6 @@ [(set_attr "type" "bitmanip,load") (set_attr "mode" "")]) -(define_insn "*zero_extendhi2_zbb" - [(set (match_operand:GPR 0 "register_operand" "=r,r") - (zero_extend:GPR - (match_operand:HI 1 "nonimmediate_operand" " r,m")))] - "TARGET_ZBB" - "@ - zext.h\t%0,%1 - lhu\t%0,%1" - [(set_attr "type" "bitmanip,load") - (set_attr "mode" "HI")]) - (define_expand "rotrdi3" [(set (match_operand:DI 0 "register_operand") (rotatert:DI (match_operand:DI 1 "register_operand")