From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1005) id EF5243858016; Thu, 24 Mar 2022 19:35:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF5243858016 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Michael Meissner To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/meissner/heads/work083)] Make vsx_splat__reg use correct insn attributes. X-Act-Checkin: gcc X-Git-Author: Michael Meissner X-Git-Refname: refs/users/meissner/heads/work083 X-Git-Oldrev: 1ea03fd63e73015e28cfb8a6772123703130eb45 X-Git-Newrev: 4a75d9bf33b5787a2c80a2a30b392fe32b5d771d Message-Id: <20220324193522.EF5243858016@sourceware.org> Date: Thu, 24 Mar 2022 19:35:22 +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: Thu, 24 Mar 2022 19:35:23 -0000 https://gcc.gnu.org/g:4a75d9bf33b5787a2c80a2a30b392fe32b5d771d commit 4a75d9bf33b5787a2c80a2a30b392fe32b5d771d Author: Michael Meissner Date: Thu Mar 24 15:35:05 2022 -0400 Make vsx_splat__reg use correct insn attributes. In looking at PR target/99293, I noticed that the code in vsx_splat__reg used "vecmove" as the "type" insn attribute when the "mtvsrdd" is generated. It should use "mfvsr". I also added a "p9v" isa attribute for that alternative. 2022-03-23 Michael Meissner gcc/ PR target/99392 * config/rs6000/rs6000.md (vsx_splat__reg): Use the correct insn type attribute. Add "p9v" isa attribute for generating the mtvsrdd instruction. Diff: --- gcc/config/rs6000/vsx.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/config/rs6000/vsx.md b/gcc/config/rs6000/vsx.md index ddafbe471dd..ad722cff70f 100644 --- a/gcc/config/rs6000/vsx.md +++ b/gcc/config/rs6000/vsx.md @@ -4580,7 +4580,8 @@ "@ xxpermdi %x0,%x1,%x1,0 mtvsrdd %x0,%1,%1" - [(set_attr "type" "vecperm,vecmove")]) + [(set_attr "type" "vecperm,mtvsr") + (set_attr "isa" "*,p9v")]) (define_insn "vsx_splat__mem" [(set (match_operand:VSX_D 0 "vsx_register_operand" "=wa")