From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1005) id 90EF8385E02C; Thu, 20 Oct 2022 06:04:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90EF8385E02C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666245893; bh=B/tlhUekm7hITExskmPF7IaKRe0xclgpAczhN40oEoQ=; h=From:To:Subject:Date:From; b=fMi/lZCMbP4rgO1PRhzvQ/4PVVYBgPc99/vyMVsRxpSOfPexRNC1zZuYj51g0kuVv inkNCURBjrkS/zAqBnsm4263lBUnmqsoHOlZL2IevU/JmHxhlQpoIztnAkZbLG4uSI wvrpt+8FrLkCLBdqIaHeF5CgtL4o6yaUns3DwLjQ= 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/dmf001)] Adjust -mlagen again. X-Act-Checkin: gcc X-Git-Author: Michael Meissner X-Git-Refname: refs/users/meissner/heads/dmf001 X-Git-Oldrev: 9d37583f423d906ceff96fe74393078e0856d321 X-Git-Newrev: 5a1111a56795ec9f728366a44f0d4b6ab5614d50 Message-Id: <20221020060453.90EF8385E02C@sourceware.org> Date: Thu, 20 Oct 2022 06:04:53 +0000 (GMT) List-Id: https://gcc.gnu.org/g:5a1111a56795ec9f728366a44f0d4b6ab5614d50 commit 5a1111a56795ec9f728366a44f0d4b6ab5614d50 Author: Michael Meissner Date: Thu Oct 20 02:04:37 2022 -0400 Adjust -mlagen again. 2022-10-20 Michael Meissner gcc/ * config/rs6000/rs6000.cc (rs6000_file_start): Define just plagen, not plagen1, plagen2, or plagen3. * config/rs6000/rs6000.md (plagendi3_nora): Generate plagen, not plagen1, plagen2, or plagen3. (plagendi3): Likewise. (plagendi3_noshift): Likewise. Diff: --- gcc/config/rs6000/rs6000.cc | 12 +----------- gcc/config/rs6000/rs6000.md | 6 +++--- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/gcc/config/rs6000/rs6000.cc b/gcc/config/rs6000/rs6000.cc index 895ab5db0ee..dc1649b601a 100644 --- a/gcc/config/rs6000/rs6000.cc +++ b/gcc/config/rs6000/rs6000.cc @@ -6104,17 +6104,7 @@ rs6000_file_start (void) fprintf (file, "\t.endm\n"); fprintf (file, "\n"); - fprintf (file, "\t.macro plagen1 rt,d,rb,n\n"); - fprintf (file, "\tpaddi \\rt,\\rt,0\n"); - fprintf (file, "\t.endm\n"); - fprintf (file, "\n"); - - fprintf (file, "\t.macro plagen2 rt,d,ra,rb,n\n"); - fprintf (file, "\tpaddi \\rt,\\rt,0\n"); - fprintf (file, "\t.endm\n"); - fprintf (file, "\n"); - - fprintf (file, "\t.macro plagen3 rt,d,ra,rb\n"); + fprintf (file, "\t.macro plagen rt,d,rb,n\n"); fprintf (file, "\tpaddi \\rt,\\rt,0\n"); fprintf (file, "\t.endm\n"); fprintf (file, "\n"); diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 1af193562b2..242c4121157 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -15597,7 +15597,7 @@ (match_operand 2 "u5bit_cint_operand" "n")) (match_operand 3 "s32bit_cint_operand" "n")))] "TARGET_LAGEN && TARGET_PREFIXED" - "plagen1 %0,%3,%1,%2" ;; "plagen %0,%3(0),%1,%2" + "plagen %0,%3(0),%1,%2" [(set_attr "type" "shift") (set_attr "prefixed" "yes")]) @@ -15608,7 +15608,7 @@ (match_operand:DI 3 "base_reg_operand" "b")) (match_operand 4 "s32bit_cint_operand" "n")))] "TARGET_LAGEN && TARGET_PREFIXED" - "plagen2 %0,%4,%3,%1,%2" ;; "plagen %0,%4(%3),%1,%2" + "plagen %0,%4(%3),%1,%2" [(set_attr "type" "shift") (set_attr "prefixed" "yes")]) @@ -15618,7 +15618,7 @@ (match_operand:DI 2 "gpc_reg_operand" "r")) (match_operand 3 "s32bit_cint_operand" "n")))] "TARGET_LAGEN && TARGET_PREFIXED" - "plagen3 %0,%3,%1,%2" ;; "plagen %0,%3(%1),%2,0" + "plagen %0,%3(%1),%2,0" [(set_attr "type" "shift") (set_attr "prefixed" "yes")])