From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1005) id 4ED163858C54; Thu, 24 Mar 2022 19:40:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4ED163858C54 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_extract_ use correct insn attributes. X-Act-Checkin: gcc X-Git-Author: Michael Meissner X-Git-Refname: refs/users/meissner/heads/work083 X-Git-Oldrev: 4a75d9bf33b5787a2c80a2a30b392fe32b5d771d X-Git-Newrev: cba5bcdfb9016c02f3d9f516329339e9398405b2 Message-Id: <20220324194009.4ED163858C54@sourceware.org> Date: Thu, 24 Mar 2022 19:40:09 +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:40:09 -0000 https://gcc.gnu.org/g:cba5bcdfb9016c02f3d9f516329339e9398405b2 commit cba5bcdfb9016c02f3d9f516329339e9398405b2 Author: Michael Meissner Date: Thu Mar 24 15:39:50 2022 -0400 Make vsx_extract_ use correct insn attributes. In looking at PR target/99293, I noticed that the insn "type" attribute is incorrect for the vsx_extract_ insns. In particular: 1) Simple vector register move should be vecsimple (alternative 1); 2) Xxpermdi should be vecperm (alternative 2); (and) 3) Mfvsrld should be mfvsr (alternative 4). This patch fixes those attributes. 2022-03-24 Michael Meissner gcc/ PR target/99392 * config/rs6000/rs6000.md (vsx_extract_): Use the correct insn type for the alternatives. Diff: --- gcc/config/rs6000/vsx.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/rs6000/vsx.md b/gcc/config/rs6000/vsx.md index ad722cff70f..c79d796a513 100644 --- a/gcc/config/rs6000/vsx.md +++ b/gcc/config/rs6000/vsx.md @@ -3451,7 +3451,7 @@ else gcc_unreachable (); } - [(set_attr "type" "veclogical,mfvsr,mfvsr,vecperm") + [(set_attr "type" "vecsimple,vecperm,mfvsr,mfvsr") (set_attr "isa" "*,*,p8v,p9v")]) ;; Optimize extracting a single scalar element from memory.