diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2019-06-04 18:27:45 +0200 |
---|---|---|
committer | Segher Boessenkool <segher@gcc.gnu.org> | 2019-06-04 18:27:45 +0200 |
commit | e670418ff18f36f81f3f619c34578da03d102694 (patch) | |
tree | 621c6bf80d8a3bc92c2810b2bff366b02838935d /gcc/config/rs6000/rs6000.md | |
parent | e8c470690a80a39b11255ca192694848857ee0c8 (diff) |
rs6000: wi->wa, wt->wa
"wi" and "wt" mean just the same as "wa" these days. Change them to
the simpler name.
* config/rs6000/constraints.md (define_register_constraint "wi"):
Delete.
(define_register_constraint "wt"): Delete.
* config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
(rs6000_init_hard_regno_mode_ok): Adjust.
* config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
* config/rs6000/rs6000.md: Adjust.
* config/rs6000/vsx.md: Adjust.
* doc/md.texi (Machine Constraints): Adjust.
From-SVN: r271914
Diffstat (limited to 'gcc/config/rs6000/rs6000.md')
-rw-r--r-- | gcc/config/rs6000/rs6000.md | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index c49614c237d..07c27a12d60 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -526,12 +526,12 @@ ; ISA 2.06 (power7). This includes instructions that normally target DF mode, ; but are used on SFmode, since internally SFmode values are kept in the DFmode ; format. -(define_mode_attr Fv [(SF "ww") (DF "ws") (DI "wi")]) +(define_mode_attr Fv [(SF "ww") (DF "ws") (DI "wa")]) ; SF/DF constraint for arithmetic on VSX registers. This is intended to be ; used for DFmode instructions added in ISA 2.06 (power7) and SFmode ; instructions added in ISA 2.07 (power8) -(define_mode_attr Fv2 [(SF "wa") (DF "ws") (DI "wi")]) +(define_mode_attr Fv2 [(SF "wa") (DF "ws") (DI "wa")]) ; Which isa is needed for those float instructions? (define_mode_attr Fisa [(SF "p8v") (DF "*") (DI "*")]) @@ -656,7 +656,7 @@ ;; either. ;; Mode attribute for boolean operation register constraints for output -(define_mode_attr BOOL_REGS_OUTPUT [(TI "&r,r,r,wt,v") +(define_mode_attr BOOL_REGS_OUTPUT [(TI "&r,r,r,wa,v") (PTI "&r,r,r") (V16QI "wa,v,&?r,?r,?r") (V8HI "wa,v,&?r,?r,?r") @@ -667,7 +667,7 @@ (V1TI "wa,v,&?r,?r,?r")]) ;; Mode attribute for boolean operation register constraints for operand1 -(define_mode_attr BOOL_REGS_OP1 [(TI "r,0,r,wt,v") +(define_mode_attr BOOL_REGS_OP1 [(TI "r,0,r,wa,v") (PTI "r,0,r") (V16QI "wa,v,r,0,r") (V8HI "wa,v,r,0,r") @@ -678,7 +678,7 @@ (V1TI "wa,v,r,0,r")]) ;; Mode attribute for boolean operation register constraints for operand2 -(define_mode_attr BOOL_REGS_OP2 [(TI "r,r,0,wt,v") +(define_mode_attr BOOL_REGS_OP2 [(TI "r,r,0,wa,v") (PTI "r,r,0") (V16QI "wa,v,r,r,0") (V8HI "wa,v,r,r,0") @@ -691,7 +691,7 @@ ;; Mode attribute for boolean operation register constraints for operand1 ;; for one_cmpl. To simplify things, we repeat the constraint where 0 ;; is used for operand1 or operand2 -(define_mode_attr BOOL_REGS_UNARY [(TI "r,0,0,wt,v") +(define_mode_attr BOOL_REGS_UNARY [(TI "r,0,0,wa,v") (PTI "r,0,0") (V16QI "wa,v,r,0,0") (V8HI "wa,v,r,0,0") @@ -835,7 +835,7 @@ (define_insn "zero_extendsi<mode>2" - [(set (match_operand:EXTSI 0 "gpc_reg_operand" "=r,r,d,wa,wi,r,wa") + [(set (match_operand:EXTSI 0 "gpc_reg_operand" "=r,r,d,wa,wa,r,wa") (zero_extend:EXTSI (match_operand:SI 1 "reg_or_mem_operand" "m,r,Z,Z,r,wa,wa")))] "" "@ @@ -1020,7 +1020,7 @@ (define_insn "extendsi<mode>2" [(set (match_operand:EXTSI 0 "gpc_reg_operand" - "=r, r, d, wa, wi, v, v, wr") + "=r, r, d, wa, wa, v, v, wr") (sign_extend:EXTSI (match_operand:SI 1 "lwa_operand" "YZ, r, Z, Z, r, v, v, ?wa")))] "" @@ -5234,7 +5234,7 @@ ; We don't define lfiwax/lfiwzx with the normal definition, because we ; don't want to support putting SImode in FPR registers. (define_insn "lfiwax" - [(set (match_operand:DI 0 "gpc_reg_operand" "=d,wi,wi,v") + [(set (match_operand:DI 0 "gpc_reg_operand" "=d,wa,wa,v") (unspec:DI [(match_operand:SI 1 "reg_or_indexed_operand" "Z,Z,r,v")] UNSPEC_LFIWAX))] "TARGET_HARD_FLOAT && TARGET_LFIWAX" @@ -5254,7 +5254,7 @@ (define_insn_and_split "floatsi<mode>2_lfiwax" [(set (match_operand:SFDF 0 "gpc_reg_operand" "=<Fv>") (float:SFDF (match_operand:SI 1 "nonimmediate_operand" "r"))) - (clobber (match_scratch:DI 2 "=wi"))] + (clobber (match_scratch:DI 2 "=wa"))] "TARGET_HARD_FLOAT && TARGET_LFIWAX && <SI_CONVERT_FP> && can_create_pseudo_p ()" "#" @@ -5295,7 +5295,7 @@ (float:SFDF (sign_extend:DI (match_operand:SI 1 "indexed_or_indirect_operand" "Z")))) - (clobber (match_scratch:DI 2 "=wi"))] + (clobber (match_scratch:DI 2 "=wa"))] "TARGET_HARD_FLOAT && TARGET_LFIWAX && <SI_CONVERT_FP>" "#" "" @@ -5315,7 +5315,7 @@ (set_attr "type" "fpload")]) (define_insn "lfiwzx" - [(set (match_operand:DI 0 "gpc_reg_operand" "=d,wi,wi,wa") + [(set (match_operand:DI 0 "gpc_reg_operand" "=d,wa,wa,wa") (unspec:DI [(match_operand:SI 1 "reg_or_indexed_operand" "Z,Z,r,wa")] UNSPEC_LFIWZX))] "TARGET_HARD_FLOAT && TARGET_LFIWZX" @@ -5330,7 +5330,7 @@ (define_insn_and_split "floatunssi<mode>2_lfiwzx" [(set (match_operand:SFDF 0 "gpc_reg_operand" "=<Fv>") (unsigned_float:SFDF (match_operand:SI 1 "nonimmediate_operand" "r"))) - (clobber (match_scratch:DI 2 "=wi"))] + (clobber (match_scratch:DI 2 "=wa"))] "TARGET_HARD_FLOAT && TARGET_LFIWZX && <SI_CONVERT_FP>" "#" "" @@ -5370,7 +5370,7 @@ (unsigned_float:SFDF (zero_extend:DI (match_operand:SI 1 "indexed_or_indirect_operand" "Z")))) - (clobber (match_scratch:DI 2 "=wi"))] + (clobber (match_scratch:DI 2 "=wa"))] "TARGET_HARD_FLOAT && TARGET_LFIWZX && <SI_CONVERT_FP>" "#" "" @@ -5569,7 +5569,7 @@ [(set (match_operand:FP_ISA3 0 "vsx_register_operand" "=<Fv>,<Fv>,<Fv>") (float:FP_ISA3 (match_operand:QHI 1 "reg_or_indexed_operand" "v,r,Z"))) - (clobber (match_scratch:DI 2 "=v,wi,v")) + (clobber (match_scratch:DI 2 "=v,wa,v")) (clobber (match_scratch:DI 3 "=X,r,X")) (clobber (match_scratch:<QHI:MODE> 4 "=X,X,v"))] "TARGET_P9_VECTOR && TARGET_DIRECT_MOVE && TARGET_POWERPC64" @@ -5622,7 +5622,7 @@ [(set (match_operand:FP_ISA3 0 "vsx_register_operand" "=<Fv>,<Fv>,<Fv>") (unsigned_float:FP_ISA3 (match_operand:QHI 1 "reg_or_indexed_operand" "v,r,Z"))) - (clobber (match_scratch:DI 2 "=v,wi,wa")) + (clobber (match_scratch:DI 2 "=v,wa,wa")) (clobber (match_scratch:DI 3 "=X,r,X"))] "TARGET_P9_VECTOR && TARGET_DIRECT_MOVE && TARGET_POWERPC64" "#" @@ -5748,7 +5748,7 @@ "") (define_insn "*fix_trunc<mode>di2_fctidz" - [(set (match_operand:DI 0 "gpc_reg_operand" "=d,wi") + [(set (match_operand:DI 0 "gpc_reg_operand" "=d,wa") (fix:DI (match_operand:SFDF 1 "gpc_reg_operand" "<Ff>,<Fv>")))] "TARGET_HARD_FLOAT && TARGET_FCFID" "@ @@ -5765,7 +5765,7 @@ (define_insn_and_split "fix<uns>_trunc<SFDF:mode><QHI:mode>2" [(set (match_operand:<QHI:MODE> 0 "gpc_reg_operand" "=d,wa,r") (any_fix:QHI (match_operand:SFDF 1 "gpc_reg_operand" "d,wa,wa"))) - (clobber (match_scratch:SI 2 "=X,X,wi"))] + (clobber (match_scratch:SI 2 "=X,X,wa"))] "TARGET_DIRECT_MOVE" "@ fctiw<u>z %0,%1 @@ -5867,7 +5867,7 @@ (set_attr "type" "fp")]) (define_insn "fixuns_trunc<mode>di2" - [(set (match_operand:DI 0 "gpc_reg_operand" "=d,wi") + [(set (match_operand:DI 0 "gpc_reg_operand" "=d,wa") (unsigned_fix:DI (match_operand:SFDF 1 "gpc_reg_operand" "<Ff>,<Fv>")))] "TARGET_HARD_FLOAT && TARGET_FCTIDUZ" "@ @@ -6002,7 +6002,7 @@ ;; because the first makes it clear that operand 0 is not live ;; before the instruction. (define_insn "fctiwz_<mode>" - [(set (match_operand:DI 0 "gpc_reg_operand" "=d,wi") + [(set (match_operand:DI 0 "gpc_reg_operand" "=d,wa") (unspec:DI [(fix:SI (match_operand:SFDF 1 "gpc_reg_operand" "<Ff>,<Fv>"))] UNSPEC_FCTIWZ))] @@ -6013,7 +6013,7 @@ [(set_attr "type" "fp")]) (define_insn "fctiwuz_<mode>" - [(set (match_operand:DI 0 "gpc_reg_operand" "=d,wi") + [(set (match_operand:DI 0 "gpc_reg_operand" "=d,wa") (unspec:DI [(unsigned_fix:SI (match_operand:SFDF 1 "gpc_reg_operand" "<Ff>,<Fv>"))] UNSPEC_FCTIWUZ))] @@ -6224,7 +6224,7 @@ (define_insn "floatdidf2" [(set (match_operand:DF 0 "gpc_reg_operand" "=d,ws") - (float:DF (match_operand:DI 1 "gpc_reg_operand" "d,wi")))] + (float:DF (match_operand:DI 1 "gpc_reg_operand" "d,wa")))] "TARGET_FCFID && TARGET_HARD_FLOAT" "@ fcfid %0,%1 @@ -6239,7 +6239,7 @@ (define_insn_and_split "*floatdidf2_mem" [(set (match_operand:DF 0 "gpc_reg_operand" "=d,ws") (float:DF (match_operand:DI 1 "memory_operand" "m,Z"))) - (clobber (match_scratch:DI 2 "=d,wi"))] + (clobber (match_scratch:DI 2 "=d,wa"))] "TARGET_HARD_FLOAT && TARGET_FCFID" "#" "&& reload_completed" @@ -6258,7 +6258,7 @@ (define_insn "*floatunsdidf2_fcfidu" [(set (match_operand:DF 0 "gpc_reg_operand" "=d,ws") - (unsigned_float:DF (match_operand:DI 1 "gpc_reg_operand" "d,wi")))] + (unsigned_float:DF (match_operand:DI 1 "gpc_reg_operand" "d,wa")))] "TARGET_HARD_FLOAT && TARGET_FCFIDU" "@ fcfidu %0,%1 @@ -6268,7 +6268,7 @@ (define_insn_and_split "*floatunsdidf2_mem" [(set (match_operand:DF 0 "gpc_reg_operand" "=d,ws") (unsigned_float:DF (match_operand:DI 1 "memory_operand" "m,Z"))) - (clobber (match_scratch:DI 2 "=d,wi"))] + (clobber (match_scratch:DI 2 "=d,wa"))] "TARGET_HARD_FLOAT && (TARGET_FCFIDU || VECTOR_UNIT_VSX_P (DFmode))" "#" "&& reload_completed" @@ -6301,7 +6301,7 @@ (define_insn "floatdisf2_fcfids" [(set (match_operand:SF 0 "gpc_reg_operand" "=f,wa") - (float:SF (match_operand:DI 1 "gpc_reg_operand" "d,wi")))] + (float:SF (match_operand:DI 1 "gpc_reg_operand" "d,wa")))] "TARGET_HARD_FLOAT && TARGET_FCFIDS" "@ fcfids %0,%1 @@ -6312,7 +6312,7 @@ (define_insn_and_split "*floatdisf2_mem" [(set (match_operand:SF 0 "gpc_reg_operand" "=f,wa,wa") (float:SF (match_operand:DI 1 "memory_operand" "m,m,Z"))) - (clobber (match_scratch:DI 2 "=d,d,wi"))] + (clobber (match_scratch:DI 2 "=d,d,wa"))] "TARGET_HARD_FLOAT && TARGET_FCFIDS" "#" "&& reload_completed" @@ -6382,7 +6382,7 @@ (define_insn "floatunsdisf2_fcfidus" [(set (match_operand:SF 0 "gpc_reg_operand" "=f,wa") - (unsigned_float:SF (match_operand:DI 1 "gpc_reg_operand" "d,wi")))] + (unsigned_float:SF (match_operand:DI 1 "gpc_reg_operand" "d,wa")))] "TARGET_HARD_FLOAT && TARGET_FCFIDUS" "@ fcfidus %0,%1 @@ -6393,7 +6393,7 @@ (define_insn_and_split "*floatunsdisf2_mem" [(set (match_operand:SF 0 "gpc_reg_operand" "=f,wa,wa") (unsigned_float:SF (match_operand:DI 1 "memory_operand" "m,m,Z"))) - (clobber (match_scratch:DI 2 "=d,d,wi"))] + (clobber (match_scratch:DI 2 "=d,d,wa"))] "TARGET_HARD_FLOAT && TARGET_FCFIDUS" "#" "&& reload_completed" @@ -8742,12 +8742,12 @@ (define_insn "*movdi_internal32" [(set (match_operand:DI 0 "nonimmediate_operand" "=Y, r, r, m, ^d, ^d, - r, wY, Z, ^v, $wv, ^wi, - wa, wa, wv, wi, *i, wv, + r, wY, Z, ^v, $wv, ^wa, + wa, wa, wv, wa, *i, wv, wv") (match_operand:DI 1 "input_operand" "r, Y, r, ^d, m, ^d, - IJKnF, ^v, $wv, wY, Z, ^wi, + IJKnF, ^v, $wv, wY, Z, ^wa, Oj, wM, OjwM, Oj, wM, wS, wB"))] "! TARGET_POWERPC64 @@ -8826,15 +8826,15 @@ [(set (match_operand:DI 0 "nonimmediate_operand" "=YZ, r, r, r, r, r, m, ^d, ^d, wY, Z, $v, - $wv, ^wi, wa, wa, wv, wi, - wi, wv, wv, r, *h, *h, - ?r, ?wi") + $wv, ^wa, wa, wa, wv, wa, + wa, wv, wv, r, *h, *h, + ?r, ?wa") (match_operand:DI 1 "input_operand" "r, YZ, r, I, L, nF, ^d, m, ^d, ^v, $wv, wY, - Z, ^wi, Oj, wM, OjwM, Oj, + Z, ^wa, Oj, wM, OjwM, Oj, wM, wS, wB, *h, r, 0, - wi, r"))] + wa, r"))] "TARGET_POWERPC64 && (gpc_reg_operand (operands[0], DImode) || gpc_reg_operand (operands[1], DImode))" @@ -12654,7 +12654,7 @@ (const_int 1)) (label_ref (match_operand 0)) (pc))) - (set (match_operand:P 2 "nonimmediate_operand" "=1,*r,m,*d*wi*c*l") + (set (match_operand:P 2 "nonimmediate_operand" "=1,*r,m,*d*wa*c*l") (plus:P (match_dup 1) (const_int -1))) (clobber (match_scratch:CC 3 "=X,&x,&x,&x")) @@ -12730,7 +12730,7 @@ (const_int 0)])) (label_ref (match_operand 0)) (pc))) - (set (match_operand:P 2 "nonimmediate_operand" "=1,*r,m,*d*wi*c*l") + (set (match_operand:P 2 "nonimmediate_operand" "=1,*r,m,*d*wa*c*l") (plus:P (match_dup 1) (const_int -1))) (clobber (match_scratch:P 5 "=X,X,&r,r")) |