public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-6587] i386: Mark some of strict_low_part insn constraints earlyclobbered
@ 2022-01-14 15:06 Uros Bizjak
0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2022-01-14 15:06 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ffb7d4b2b76746e4189979f9d27d80be2195308a
commit r12-6587-gffb7d4b2b76746e4189979f9d27d80be2195308a
Author: Uros Bizjak <ubizjak@gmail.com>
Date: Fri Jan 14 16:05:17 2022 +0100
i386: Mark some of strict_low_part insn constraints earlyclobbered
While there is practically impossible that input registers are matched
with in-out register, better mark the output operand of the split alternative
as earlyclobbered - we do output early to the output operand when
the insn is split.
2022-01-14 Uroš Bizjak <ubizjak@gmail.com>
gcc/ChangeLog:
* config/i386/i386.md (*add<mode>_1_slp"):
Mark alternative 1 output operand earlyclobbered.
(*sub<mode>_1_slp): Ditto.
(*and<mode>_1_slp): Ditto.
(*<code><mode>_1_slp): Ditto.
(*neg<mode>_1_slp): Ditto.
(*one_cmpl<mode>_1_slp): Ditto.
(*ashl<mode>3_1_slp): Ditto.
(*<insn><mode>3_1_slp): Ditto.
(*<insn><mode>3_1_slp): Ditto.
Diff:
---
gcc/config/i386/i386.md | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index 9477ca9b41d..7b1694314ea 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -5902,7 +5902,7 @@
;; Alternative 1 is needed to work around LRA limitation, see PR82524.
(define_insn_and_split "*add<mode>_1_slp"
- [(set (strict_low_part (match_operand:SWI12 0 "register_operand" "+<r>,<r>"))
+ [(set (strict_low_part (match_operand:SWI12 0 "register_operand" "+<r>,&<r>"))
(plus:SWI12 (match_operand:SWI12 1 "nonimmediate_operand" "%0,!<r>")
(match_operand:SWI12 2 "general_operand" "<r>mn,<r>mn")))
(clobber (reg:CC FLAGS_REG))]
@@ -6856,7 +6856,7 @@
;; Alternative 1 is needed to work around LRA limitation, see PR82524.
(define_insn_and_split "*sub<mode>_1_slp"
- [(set (strict_low_part (match_operand:SWI12 0 "register_operand" "+<r>,<r>"))
+ [(set (strict_low_part (match_operand:SWI12 0 "register_operand" "+<r>,&<r>"))
(minus:SWI12 (match_operand:SWI12 1 "register_operand" "0,!<r>")
(match_operand:SWI12 2 "general_operand" "<r>mn,<r>mn")))
(clobber (reg:CC FLAGS_REG))]
@@ -9905,7 +9905,7 @@
;; Alternative 1 is needed to work around LRA limitation, see PR82524.
(define_insn_and_split "*and<mode>_1_slp"
- [(set (strict_low_part (match_operand:SWI12 0 "register_operand" "+<r>,<r>"))
+ [(set (strict_low_part (match_operand:SWI12 0 "register_operand" "+<r>,&<r>"))
(and:SWI12 (match_operand:SWI12 1 "nonimmediate_operand" "%0,!<r>")
(match_operand:SWI12 2 "general_operand" "<r>mn,<r>mn")))
(clobber (reg:CC FLAGS_REG))]
@@ -10542,7 +10542,7 @@
;; Alternative 1 is needed to work around LRA limitation, see PR82524.
(define_insn_and_split "*<code><mode>_1_slp"
- [(set (strict_low_part (match_operand:SWI12 0 "register_operand" "+<r>,<r>"))
+ [(set (strict_low_part (match_operand:SWI12 0 "register_operand" "+<r>,&<r>"))
(any_or:SWI12 (match_operand:SWI12 1 "nonimmediate_operand" "%0,!<r>")
(match_operand:SWI12 2 "general_operand" "<r>mn,<r>mn")))
(clobber (reg:CC FLAGS_REG))]
@@ -10896,7 +10896,7 @@
;; Alternative 1 is needed to work around LRA limitation, see PR82524.
(define_insn_and_split "*neg<mode>_1_slp"
- [(set (strict_low_part (match_operand:SWI12 0 "register_operand" "+<r>,<r>"))
+ [(set (strict_low_part (match_operand:SWI12 0 "register_operand" "+<r>,&<r>"))
(neg:SWI12 (match_operand:SWI12 1 "register_operand" "0,!<r>")))
(clobber (reg:CC FLAGS_REG))]
"!TARGET_PARTIAL_REG_STALL || optimize_function_for_size_p (cfun)"
@@ -11489,7 +11489,7 @@
;; Alternative 1 is needed to work around LRA limitation, see PR82524.
(define_insn_and_split "*one_cmpl<mode>_1_slp"
- [(set (strict_low_part (match_operand:SWI12 0 "register_operand" "+<r>,<r>"))
+ [(set (strict_low_part (match_operand:SWI12 0 "register_operand" "+<r>,&<r>"))
(not:SWI12 (match_operand:SWI12 1 "register_operand" "0,!<r>")))]
"!TARGET_PARTIAL_REG_STALL || optimize_function_for_size_p (cfun)"
"@
@@ -12185,7 +12185,7 @@
;; Alternative 1 is needed to work around LRA limitation, see PR82524.
(define_insn_and_split "*ashl<mode>3_1_slp"
- [(set (strict_low_part (match_operand:SWI12 0 "register_operand" "+<r>,<r>"))
+ [(set (strict_low_part (match_operand:SWI12 0 "register_operand" "+<r>,&<r>"))
(ashift:SWI12 (match_operand:SWI12 1 "register_operand" "0,!<r>")
(match_operand:QI 2 "nonmemory_operand" "cI,cI")))
(clobber (reg:CC FLAGS_REG))]
@@ -13062,7 +13062,7 @@
;; Alternative 1 is needed to work around LRA limitation, see PR82524.
(define_insn_and_split "*<insn><mode>3_1_slp"
- [(set (strict_low_part (match_operand:SWI12 0 "register_operand" "+<r>,<r>"))
+ [(set (strict_low_part (match_operand:SWI12 0 "register_operand" "+<r>,&<r>"))
(any_shiftrt:SWI12 (match_operand:SWI12 1 "register_operand" "0,!<r>")
(match_operand:QI 2 "nonmemory_operand" "cI,cI")))
(clobber (reg:CC FLAGS_REG))]
@@ -13606,7 +13606,7 @@
;; Alternative 1 is needed to work around LRA limitation, see PR82524.
(define_insn_and_split "*<insn><mode>3_1_slp"
- [(set (strict_low_part (match_operand:SWI12 0 "register_operand" "+<r>,<r>"))
+ [(set (strict_low_part (match_operand:SWI12 0 "register_operand" "+<r>,&<r>"))
(any_rotate:SWI12 (match_operand:SWI12 1 "register_operand" "0,!<r>")
(match_operand:QI 2 "nonmemory_operand" "cI,cI")))
(clobber (reg:CC FLAGS_REG))]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-14 15:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14 15:06 [gcc r12-6587] i386: Mark some of strict_low_part insn constraints earlyclobbered Uros Bizjak
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).