From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1256) id E8AC438515F6; Mon, 13 Jun 2022 21:30:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E8AC438515F6 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Maciej W. Rozycki To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-1075] RISC-V: Reset the length to the default of 4 for FP comparisons X-Act-Checkin: gcc X-Git-Author: Maciej W. Rozycki X-Git-Refname: refs/heads/master X-Git-Oldrev: 751f306688508b08842d0ab967dee8e6c3b91351 X-Git-Newrev: 72b185189f914a412ae39776cd284dfaeaf2213b Message-Id: <20220613213054.E8AC438515F6@sourceware.org> Date: Mon, 13 Jun 2022 21:30:54 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2022 21:30:55 -0000 https://gcc.gnu.org/g:72b185189f914a412ae39776cd284dfaeaf2213b commit r13-1075-g72b185189f914a412ae39776cd284dfaeaf2213b Author: Maciej W. Rozycki Date: Mon Jun 13 22:29:45 2022 +0100 RISC-V: Reset the length to the default of 4 for FP comparisons The default length for floating-point compare operations is overridden to 8, however the FEQ.fmt, FLT.fmt, FLE.fmt machine instructions and FGE.fmt, FGT.fmt assembly idioms the relevant RTL insns produce are all 4 bytes long each. And all the floating-point compare RTL insns that produce multiple machine instructions explicitly set their lengths. Remove the override then, letting the default of 4 apply for the single instruction case. gcc/ * config/riscv/riscv.md (length): Remove the explicit setting for "fcmp". Diff: --- gcc/config/riscv/riscv.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/gcc/config/riscv/riscv.md b/gcc/config/riscv/riscv.md index 7745290383b..308b64dd30d 100644 --- a/gcc/config/riscv/riscv.md +++ b/gcc/config/riscv/riscv.md @@ -231,8 +231,6 @@ (eq_attr "got" "load") (const_int 8) - (eq_attr "type" "fcmp") (const_int 8) - ;; SHIFT_SHIFTs are decomposed into two separate instructions. (eq_attr "move_type" "shift_shift") (const_int 8)