public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Michael Meissner <meissner@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/meissner/heads/work084)] Revert patch. Date: Fri, 1 Apr 2022 20:15:36 +0000 (GMT) [thread overview] Message-ID: <20220401201536.D37C13858418@sourceware.org> (raw) https://gcc.gnu.org/g:08fe7c705fa13e4e4f52b6dce37463ed80aa61a2 commit 08fe7c705fa13e4e4f52b6dce37463ed80aa61a2 Author: Michael Meissner <meissner@linux.ibm.com> Date: Fri Apr 1 16:15:05 2022 -0400 Revert patch. 2022-03-31 Michael Meissner <meissner@linux.ibm.com> gcc/ Revert patch. * config/rs6000/vsx.md (zero_extendditi2): New insn. Diff: --- gcc/config/rs6000/vsx.md | 52 ------------------------------------------------ 1 file changed, 52 deletions(-) diff --git a/gcc/config/rs6000/vsx.md b/gcc/config/rs6000/vsx.md index cc8c80863f2..c091e5e2f47 100644 --- a/gcc/config/rs6000/vsx.md +++ b/gcc/config/rs6000/vsx.md @@ -5019,58 +5019,6 @@ DONE; }) -;; Zero extend DI to TI. If we don't have the MTVSRDD instruction (and LXVRDX -;; in the case of power10), we use the machine independent code. If we are -;; loading up GPRs, we fall back to the old code. -(define_insn_and_split "zero_extendditi2" - [(set (match_operand:TI 0 "register_operand" "=r,r,r, wa,wa,wa") - (zero_extend:TI (match_operand:DI 1 "input_operand" "r,m,wa,r, Z, wa"))) - (clobber (match_scratch:DI 2 "=X,X,X, X, X, &wa"))] - "TARGET_POWERPC64 && TARGET_POWER10" - "@ - # - # - # - mtvsrdd %x0,0,%1 - lxvrdx %x0,%y1 - #" - "&& reload_completed - && (int_reg_operand (operands[0], TImode) - || vsx_register_operand (operands[1], DImode))" - [(pc)] -{ - rtx dest = operands[0]; - rtx src = operands[1]; - int dest_regno = reg_or_subregno (dest); - - /* Handle conversion to GPR registers. Load up the low part and then do - a sign extension to the upper part. */ - if (INT_REGNO_P (dest_regno)) - { - rtx dest_hi = gen_highpart (DImode, dest); - rtx dest_lo = gen_lowpart (DImode, dest); - - emit_move_insn (dest_lo, src); - emit_move_insn (dest_hi, const0_rtx); - DONE; - } - - /* For settomg a VSX register from another VSX register, clear a scratch - register, and use XXPERMDI to shift the value into the lower 64-bits. */ - rtx dest_v2di = gen_rtx_REG (V2DImode, dest_regno); - rtx zero = operands[2]; - - emit_move_insn (zero, const0_rtx); - if (BYTES_BIG_ENDIAN) - emit_insn (gen_vsx_concat_v2di (dest_v2di, zero, src)); - else - emit_insn (gen_vsx_concat_v2di (dest_v2di, src, zero)); - DONE; -} - [(set_attr "type" "integer,load,mfvsr,vecmove,vecload,vecperm") - (set_attr "isa" "*, *, *, *, p10, *") - (set_attr "length" "8, 8, 8, *, *, 8")]) - ;; Sign extend DI to TI. We provide both GPR targets and Altivec targets on ;; power10. On earlier systems, the machine independent code will generate a ;; shift left to sign extend the 64-bit value to 128-bit.
next reply other threads:[~2022-04-01 20:15 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-04-01 20:15 Michael Meissner [this message] -- strict thread matches above, loose matches on Subject: below -- 2022-04-02 2:24 Michael Meissner 2022-04-02 0:03 Michael Meissner 2022-03-31 14:00 Michael Meissner 2022-03-31 14:00 Michael Meissner 2022-03-31 14:00 Michael Meissner 2022-03-31 14:00 Michael Meissner 2022-03-30 17:57 Michael Meissner 2022-03-29 23:35 Michael Meissner 2022-03-29 23:29 Michael Meissner 2022-03-29 2:58 Michael Meissner
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=20220401201536.D37C13858418@sourceware.org \ --to=meissner@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).