rs6000: Fix formatting of *mov{si,di}_internal.*

Message ID 81e949a5cd389ba55d5b32e229c28cea8e64aa95.1574984676.git.segher@kernel.crashing.org
State New
Headers show
Series
  • rs6000: Fix formatting of *mov{si,di}_internal.*
Related show

Commit Message

Segher Boessenkool Nov. 28, 2019, 11:48 p.m.
This implements the improvements I asked for.  Committing.


Segher


2019-11-28  Segher Boessenkool  <segher@kernel.crashing.org>

	* config/rs6000/rs6000.md (*movsi_internal1): Fix formatting.  Improve
	formatting.
	(*movdi_internal64): Ditto.

---
 gcc/config/rs6000/rs6000.md | 192 ++++++++++++++++++++++----------------------
 1 file changed, 96 insertions(+), 96 deletions(-)

-- 
1.8.3.1

Patch

diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 876dfe3..e3e17ad 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -6889,34 +6889,34 @@  (define_split
 				 UNSPEC_MOVSI_GOT))]
   "")
 
-;;		MR           LA
-;;		LWZ          LFIWZX      LXSIWZX
-;;		STW          STFIWX      STXSIWX
-;;		LI           LIS         #
-;;		XXLOR        XXSPLTIB 0  XXSPLTIB -1 VSPLTISW
-;;		XXLXOR 0     XXLORC -1   P9 const
-;;		MTVSRWZ      MFVSRWZ
-;;		MF%1         MT%0        NOP
+;;	   MR          LA
+;;	   LWZ         LFIWZX      LXSIWZX
+;;	   STW         STFIWX      STXSIWX
+;;	   LI          LIS         #
+;;	   XXLOR       XXSPLTIB 0  XXSPLTIB -1 VSPLTISW
+;;	   XXLXOR 0    XXLORC -1   P9 const
+;;	   MTVSRWZ     MFVSRWZ
+;;	   MF%1        MT%0        NOP
 
 (define_insn "*movsi_internal1"
   [(set (match_operand:SI 0 "nonimmediate_operand"
-		"=r,         r,
-		r,           d,          v,
-		m,           Z,          Z,
-		r,           r,          r,
-		wa,          wa,         wa,         v,
-		wa,          v,          v,
-		wa,          r,
-		r,           *h,         *h")
+	  "=r,         r,
+	   r,          d,          v,
+	   m,          Z,          Z,
+	   r,          r,          r,
+	   wa,         wa,         wa,         v,
+	   wa,         v,          v,
+	   wa,         r,
+	   r,          *h,         *h")
 	(match_operand:SI 1 "input_operand"
-		"r,          U,
-		m,           Z,          Z,
-		r,           d,          v,
-		I,           L,          n,
-		wa,          O,          wM,         wB,
-		O,           wM,         wS,
-		r,           wa,
-		*h,          r,          0"))]
+	  "r,          U,
+	   m,          Z,          Z,
+	   r,          d,          v,
+	   I,          L,          n,
+	   wa,         O,          wM,         wB,
+	   O,          wM,         wS,
+	   r,          wa,
+	   *h,         r,          0"))]
   "gpc_reg_operand (operands[0], SImode)
    || gpc_reg_operand (operands[1], SImode)"
   "@
@@ -6944,32 +6944,32 @@  (define_insn "*movsi_internal1"
    mt%0 %1
    nop"
   [(set_attr "type"
-		"*,         *,
-		load,       fpload,     fpload,
-		store,      fpstore,    fpstore,
-		*,          *,          *,
-		veclogical, vecsimple,  vecsimple,  vecsimple,
-		veclogical, veclogical, vecsimple,
-		mffgpr,     mftgpr,
-		*,          *,          *")
+	  "*,          *,
+	   load,       fpload,     fpload,
+	   store,      fpstore,    fpstore,
+	   *,          *,          *,
+	   veclogical, vecsimple,  vecsimple,  vecsimple,
+	   veclogical, veclogical, vecsimple,
+	   mffgpr,     mftgpr,
+	   *,          *,          *")
    (set_attr "length"
-		"*,         *,
-		*,          *,           *,
-		*,          *,           *,
-		*,          *,           8,
-		*,          *,           *,          *,
-		*,          *,           8,
-		*,          *,
-		*,          *,           *")
+	  "*,          *,
+	   *,          *,          *,
+	   *,          *,          *,
+	   *,          *,          8,
+	   *,          *,          *,          *,
+	   *,          *,          8,
+	   *,          *,
+	   *,          *,          *")
    (set_attr "isa"
-		"*,          *,
-		*,           p8v,       p8v,
-		*,           p8v,       p8v,
-		*,           *,         *,
-		p8v,         p9v,       p9v,       p8v,
-		p9v,         p8v,       p9v,
-		p8v,         p8v,
-		*,           *,         *")])
+	  "*,          *,
+	   *,          p8v,        p8v,
+	   *,          p8v,        p8v,
+	   *,          *,          *,
+	   p8v,        p9v,        p9v,        p8v,
+	   p9v,        p8v,        p9v,
+	   p8v,        p8v,
+	   *,          *,          *")])
 
 ;; Like movsi, but adjust a SF value to be used in a SI context, i.e.
 ;; (set (reg:SI ...) (subreg:SI (reg:SF ...) 0))
@@ -8827,33 +8827,33 @@  (define_split
   DONE;
 })
 
-;;		GPR store  GPR load   GPR move
-;;		GPR li     GPR lis    GPR #
-;;		FPR store  FPR load   FPR move
-;;		AVX store  AVX store  AVX load   AVX load   VSX move
-;;		P9 0       P9 -1      AVX 0/-1   VSX 0      VSX -1
-;;		P9 const   AVX const
-;;		From SPR   To SPR     SPR<->SPR
-;;		VSX->GPR   GPR->VSX
+;;	   GPR store   GPR load    GPR move
+;;	   GPR li      GPR lis     GPR #
+;;	   FPR store   FPR load    FPR move
+;;	   AVX store   AVX store   AVX load    AVX load    VSX move
+;;	   P9 0        P9 -1       AVX 0/-1    VSX 0       VSX -1
+;;	   P9 const    AVX const
+;;	   From SPR    To SPR      SPR<->SPR
+;;	   VSX->GPR    GPR->VSX
 (define_insn "*movdi_internal64"
   [(set (match_operand:DI 0 "nonimmediate_operand"
-		"=YZ,       r,          r,
-		r,          r,          r,
-		m,          ^d,         ^d,
-		wY,         Z,          $v,         $v,         ^wa,
-		wa,         wa,         v,          wa,         wa,
-		v,          v,
-		r,          *h,         *h,
-		?r,         ?wa")
+	  "=YZ,        r,          r,
+	   r,          r,          r,
+	   m,          ^d,         ^d,
+	   wY,         Z,          $v,         $v,         ^wa,
+	   wa,         wa,         v,          wa,         wa,
+	   v,          v,
+	   r,          *h,         *h,
+	   ?r,         ?wa")
 	(match_operand:DI 1 "input_operand"
-		"r,         YZ,         r,
-		I,          L,          nF,
-		^d,         m,          ^d,
-		^v,         $v,         wY,         Z,          ^wa,
-		Oj,         wM,         OjwM,       Oj,         wM,
-		wS,         wB,
-		*h,         r,          0,
-		wa,         r"))]
+	  "r,          YZ,         r,
+	   I,          L,          nF,
+	   ^d,         m,          ^d,
+	   ^v,         $v,         wY,         Z,          ^wa,
+	   Oj,         wM,         OjwM,       Oj,         wM,
+	   wS,         wB,
+	   *h,         r,          0,
+	   wa,         r"))]
   "TARGET_POWERPC64
    && (gpc_reg_operand (operands[0], DImode)
        || gpc_reg_operand (operands[1], DImode))"
@@ -8885,33 +8885,33 @@  (define_insn "*movdi_internal64"
    mfvsrd %0,%x1
    mtvsrd %x0,%1"
   [(set_attr "type"
-		"store,      load,       *,
-		*,           *,          *,
-		fpstore,     fpload,     fpsimple,
-		fpstore,     fpstore,    fpload,     fpload,     veclogical,
-		vecsimple,   vecsimple,  vecsimple,  veclogical, veclogical,
-		vecsimple,   vecsimple,
-		mfjmpr,      mtjmpr,     *,
-		mftgpr,      mffgpr")
+	  "store,      load,       *,
+	   *,          *,          *,
+	   fpstore,    fpload,     fpsimple,
+	   fpstore,    fpstore,    fpload,     fpload,     veclogical,
+	   vecsimple,  vecsimple,  vecsimple,  veclogical, veclogical,
+	   vecsimple,  vecsimple,
+	   mfjmpr,     mtjmpr,     *,
+	   mftgpr,     mffgpr")
    (set_attr "size" "64")
    (set_attr "length"
-		"*,         *,          *,
-		*,          *,          20,
-		*,          *,          *,
-		*,          *,          *,          *,          *,
-		*,          *,          *,          *,          *,
-		8,          *,
-		*,          *,          *,
-		*,          *")
+	  "*,          *,          *,
+	   *,          *,          20,
+	   *,          *,          *,
+	   *,          *,          *,          *,          *,
+	   *,          *,          *,          *,          *,
+	   8,          *,
+	   *,          *,          *,
+	   *,          *")
    (set_attr "isa"
-		"*,         *,          *,
-		*,          *,          *,
-		*,          *,          *,
-		p9v,        p7v,        p9v,        p7v,        *,
-		p9v,        p9v,        p7v,        *,          *,
-		p7v,        p7v,
-		*,          *,          *,
-		p8v,        p8v")])
+	  "*,          *,          *,
+	   *,          *,          *,
+	   *,          *,          *,
+	   p9v,        p7v,        p9v,        p7v,        *,
+	   p9v,        p9v,        p7v,        *,          *,
+	   p7v,        p7v,
+	   *,          *,          *,
+	   p8v,        p8v")])
 
 ; Some DImode loads are best done as a load of -1 followed by a mask
 ; instruction.