public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* query about commit 666fdc46bc8489 ("RISC-V: Fix bad insn splits with paradoxical subregs")
@ 2022-11-04 22:59 Vineet Gupta
  2022-11-04 23:13 ` Jeff Law
  0 siblings, 1 reply; 4+ messages in thread
From: Vineet Gupta @ 2022-11-04 22:59 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: gcc, Michael Collison, Jeff Law

Hi Jakub,

I had a question about the aforementioned commit in RV backend.

(define_split
   [(set (match_operand:GPR 0 "register_operand")
	(and:GPR (match_operand:GPR 1 "register_operand")
                (match_operand:GPR 2 "p2m1_shift_operand")))
+   (clobber (match_operand:GPR 3 "register_operand"))]
   ""
-  [(set (match_dup 0)
+  [(set (match_dup 3)
        (ashift:GPR (match_dup 1) (match_dup 2)))

Is there something specific to this split which warrants this or so any 
split patterns involving shifts have this to avoid the shifting by more 
than SUBREG_REG problem.

Also could you please explain where the clobber itself is allocated ?

This came up when discussing the solution to PR/106602 [1]


Thx,
-Vineet

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106602

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

end of thread, other threads:[~2022-11-04 23:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-04 22:59 query about commit 666fdc46bc8489 ("RISC-V: Fix bad insn splits with paradoxical subregs") Vineet Gupta
2022-11-04 23:13 ` Jeff Law
2022-11-04 23:38   ` Vineet Gupta
2022-11-04 23:47     ` Jeff Law

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).