From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1816) id 71B463858D1E; Mon, 26 Jun 2023 16:56:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 71B463858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687798565; bh=Ebu/sr+AopX/WHILEaI8xbYkBAf4w8LTyMRXGPtKxQk=; h=From:To:Subject:Date:From; b=hpt+oqhyzwzjGrEovl2WSiXjReLMwo2ZerOu1RSuag2wY9FQdPrw3yAhOWs4r4Jtf 471gOhl1mri2srME4ENa7wM9o6cVZrAOINUYtX3ESSJmitPnVw+2xh8+5UwsmVT215 qn1Iu1rahfiwQ3yR5EXvJTY1zgcBwFXlIUvebH+c= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Kyrylo Tkachov To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-2107] aarch64: Use instead of in scalar SQRSHRUN pattern X-Act-Checkin: gcc X-Git-Author: Kyrylo Tkachov X-Git-Refname: refs/heads/master X-Git-Oldrev: 198bab37a93526af1a4419cb7244f2bb5a16415b X-Git-Newrev: 79d8fbbcbf09dfcb6ca18b129fd7841e0eeb0ef5 Message-Id: <20230626165605.71B463858D1E@sourceware.org> Date: Mon, 26 Jun 2023 16:56:05 +0000 (GMT) List-Id: https://gcc.gnu.org/g:79d8fbbcbf09dfcb6ca18b129fd7841e0eeb0ef5 commit r14-2107-g79d8fbbcbf09dfcb6ca18b129fd7841e0eeb0ef5 Author: Kyrylo Tkachov Date: Mon Jun 26 17:54:42 2023 +0100 aarch64: Use instead of in scalar SQRSHRUN pattern In the scalar pattern for SQRSHRUN it's a bit clearer to use DWI instead of V2XWIDE to make it more clear that no vector modes are involved. No behavioural change intended. Bootstrapped and tested on aarch64-none-linux-gnu. gcc/ChangeLog: * config/aarch64/aarch64-simd.md (aarch64_sqrshrun_n_insn): Use instead of . (aarch64_sqrshrun_n): Likewise. Diff: --- gcc/config/aarch64/aarch64-simd.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gcc/config/aarch64/aarch64-simd.md b/gcc/config/aarch64/aarch64-simd.md index 0ea112346b0..4052ca9ef04 100644 --- a/gcc/config/aarch64/aarch64-simd.md +++ b/gcc/config/aarch64/aarch64-simd.md @@ -6713,14 +6713,14 @@ ) (define_insn "aarch64_sqrshrun_n_insn" - [(set (match_operand: 0 "register_operand" "=w") - (smin: - (smax: - (ashiftrt: - (plus: - (sign_extend: + [(set (match_operand: 0 "register_operand" "=w") + (smin: + (smax: + (ashiftrt: + (plus: + (sign_extend: (match_operand:SD_HSDI 1 "register_operand" "w")) - (match_operand: 3 "aarch64_int_rnd_operand")) + (match_operand: 3 "aarch64_int_rnd_operand")) (match_operand:SI 2 "aarch64_simd_shift_imm_offset_")) (const_int 0)) (const_int )))] @@ -6736,10 +6736,10 @@ (match_operand:SI 2 "aarch64_simd_shift_imm_offset_")] "TARGET_SIMD" { - int prec = GET_MODE_UNIT_PRECISION (mode); + int prec = GET_MODE_UNIT_PRECISION (mode); wide_int rnd_wi = wi::set_bit_in_zero (INTVAL (operands[2]) - 1, prec); - rtx rnd = immed_wide_int_const (rnd_wi, mode); - rtx dst = gen_reg_rtx (mode); + rtx rnd = immed_wide_int_const (rnd_wi, mode); + rtx dst = gen_reg_rtx (mode); emit_insn (gen_aarch64_sqrshrun_n_insn (dst, operands[1], operands[2], rnd)); emit_move_insn (operands[0], gen_lowpart (mode, dst)); DONE;