public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Uros Bizjak <uros@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-6587] i386: Mark some of strict_low_part insn constraints earlyclobbered Date: Fri, 14 Jan 2022 15:06:09 +0000 (GMT) [thread overview] Message-ID: <20220114150609.956F23836419@sourceware.org> (raw) 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))]
reply other threads:[~2022-01-14 15:06 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220114150609.956F23836419@sourceware.org \ --to=uros@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).