public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] rs6000: Fix constraint v with rs6000_constraints[RS6000_CONSTRAINT_v]
@ 2022-01-13  1:55 Kewen.Lin
  2022-01-13  3:07 ` David Edelsohn
  0 siblings, 1 reply; 12+ messages in thread
From: Kewen.Lin @ 2022-01-13  1:55 UTC (permalink / raw)
  To: GCC Patches; +Cc: Segher Boessenkool, David Edelsohn, Bill Schmidt

Hi,

This patch is to fix register constraint v with
rs6000_constraints[RS6000_CONSTRAINT_v] instead of ALTIVEC_REGS,
just like some other existing register constraints with
RS6000_CONSTRAINT_*.

I happened to see this and hope it's not intentional and just
got neglected. 

Bootstrapped and regtested on powerpc64le-linux-gnu P9 and
powerpc64-linux-gnu P8.

Is it ok for trunk?

BR,
Kewen
-----
gcc/ChangeLog:

	* config/rs6000/constraints.md (register constraint v): Use
	rs6000_constraints[RS6000_CONSTRAINT_v] instead of ALTIVEC_REGS.
---
 gcc/config/rs6000/constraints.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/rs6000/constraints.md b/gcc/config/rs6000/constraints.md
index a4b05837fa6..c01dcbbc3a3 100644
--- a/gcc/config/rs6000/constraints.md
+++ b/gcc/config/rs6000/constraints.md
@@ -37,7 +37,7 @@ (define_register_constraint "d" "rs6000_constraints[RS6000_CONSTRAINT_d]"
    historically @code{f} was for single-precision and @code{d} was for
    double-precision floating point.")

-(define_register_constraint "v" "ALTIVEC_REGS"
+(define_register_constraint "v" "rs6000_constraints[RS6000_CONSTRAINT_v]"
   "An Altivec vector register (VR), @code{v0}@dots{}@code{v31}.")

 (define_register_constraint "wa" "rs6000_constraints[RS6000_CONSTRAINT_wa]"
--
2.27.0

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-05-11  8:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-13  1:55 [PATCH] rs6000: Fix constraint v with rs6000_constraints[RS6000_CONSTRAINT_v] Kewen.Lin
2022-01-13  3:07 ` David Edelsohn
2022-01-13  3:38   ` Kewen.Lin
2022-01-13  3:44     ` David Edelsohn
2022-01-13  3:56       ` Kewen.Lin
2022-01-13 12:28         ` Kewen.Lin
2022-01-13 16:31           ` David Edelsohn
2022-01-26  2:26             ` Kewen.Lin
2022-01-26 17:57               ` Segher Boessenkool
2022-01-27 11:24                 ` Kewen.Lin
2022-01-27 12:51                   ` Segher Boessenkool
2022-05-11  8:56                     ` Kewen.Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).