From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1005) id C14153858D33; Wed, 19 Apr 2023 22:09:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C14153858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681942170; bh=Fkx+v4XclR6Om0WLYCr9OghLo8gbh6Te0VCVWUSy7zs=; h=From:To:Subject:Date:From; b=XNzdxNn3JKlGn2f4vvJRRZb712pB3QXc8xCV4Liab5lHF3YlOvdAky1Jbvi4VnqNL +PhlftnGoXPVF96GgZb5Z8IT+G8Bcl1elS+H7GyBGCv7aInRD5OuuBNV1LX98bOfws TcZzTYMDpSxBNVJsy+Uye2OiF5dWXK6SKjzP1QV0= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Michael Meissner To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/meissner/heads/work119)] Update ChangeLog.* X-Act-Checkin: gcc X-Git-Author: Michael Meissner X-Git-Refname: refs/users/meissner/heads/work119 X-Git-Oldrev: 3b8c02815ac3d9672dbe743499e90f9742921568 X-Git-Newrev: 1ea2a49ccd0b6fec6d5e6d166447ab94795a2b89 Message-Id: <20230419220930.C14153858D33@sourceware.org> Date: Wed, 19 Apr 2023 22:09:30 +0000 (GMT) List-Id: https://gcc.gnu.org/g:1ea2a49ccd0b6fec6d5e6d166447ab94795a2b89 commit 1ea2a49ccd0b6fec6d5e6d166447ab94795a2b89 Author: Michael Meissner Date: Wed Apr 19 18:09:27 2023 -0400 Update ChangeLog.* Diff: --- gcc/ChangeLog.meissner | 91 ++++++++++++++++++++++++++++---------------------- 1 file changed, 52 insertions(+), 39 deletions(-) diff --git a/gcc/ChangeLog.meissner b/gcc/ChangeLog.meissner index 8fff1cb0c00..bf4b77a0dc9 100644 --- a/gcc/ChangeLog.meissner +++ b/gcc/ChangeLog.meissner @@ -1,72 +1,66 @@ -==================== Branch work119, patch #23 ==================== +==================== Branch work119, patch #45 was reverted ==================== -Optimize V8HI/V16QI vec_extract from memory with constant element number - -This patch adds combiner insns to fold in conversion to DImode from vec_extract -of a V8HI or V16QI variable with constant element number. With this patch, GCC -will directly emit LHA, LHZ, or LBZ without needing an instruction to do the -sign or zero extension. +Fold conversion to float into V4SI vsx_extract from memory. +This patch folds conversion to floating point of vsx_extract from memory of V4SI +elements where the element number is constant. This code optimizes things so it +will load the integer with LFIWAX or LFIWZX directly into a vector register +rather than loading it into a GPR and doing a direct move operation. 2023-04-18 Michael Meissner gcc/ - * config/rs6000/vsx.md (vsx_extract__load_to_udi): New insn. - (sx_extract_v8hi_load_to_sd): New insn. + * config/rs6000/vsx.md (SIGN_ZERO_EXTEND): New mode attribute. + (vsx_extract_v4si_load_to_): New insn. gcc/testsuite/ - * gcc.target/powerpc/vec-extract-mem-char-1.c: New file. - * gcc.target/powerpc/vec-extract-mem-short-1.c: New file. + * gcc.target/powerpc/vec-extract-mem-int-2.c: New file. -==================== Branch work119, patch #22 ==================== +==================== Branch work119, patch #44 was reverted ==================== -Add float/double conversions fro V4SI vec_extract +==================== Branch work119, patch #43 ==================== -This patch adds combiner insns to fold in conversion to float, double, or the -IEEE 128-bit types (both signed and unsigned) of V4SI vec_extract with a -constant element. With this patch, GCC will load the SImode value directly into -the vector register with LFIWZX or LFIWAX instead of doing a LWZ and then moving -the value over with a direct move before the floating point conversion. +Fold sign or zero convert into vsx_extract from memory. + +This patch folds sign or zero convert operations into vsx_extract from memory +where the element number is constant. 2023-04-18 Michael Meissner gcc/ - * config/rs6000/vsx.md (SIGN_ZERO): New code attribute. - (FL_CONSTRAINT): New code attribute. - (vsx_extract_v4si_load_to__load_to_udi): New insn. + (vsx_extract__load_to_sdi): New insn. + (vsx_extract_v8hi_load_to_si): New insn. gcc/testsuite/ - * gcc.target/powerpc/vec-extract-mem-int-3.c: New file. - -==================== Branch work119, patch #21 ==================== + * gcc.target/powerpc/vec-extract-mem-char-1.c: New file. + * gcc.target/powerpc/vec-extract-mem-int-1.c: New file. + * gcc.target/powerpc/vec-extract-mem-short-1.c: New file. -Add sign/zero conversions for V4SI vec_extract +==================== Branch work119, patch #42 ==================== -This patch adds combiner insns to fold in sign and zero extension of vec_extract -of V4SI with a constant element when expanding to DImode. +Allow vec_extract to load vector registers. 2023-04-18 Michael Meissner gcc/ - * config/rs6000/vsx.md (vsx_extract_v4si_load_to_di): New insn. - -gcc/testsuite/ - - * gcc.target/powerpc/vec-extract-mem-int-2.c: New test. + * config/rs6000/vsx.md (VSX_EX_ISA): New mode attribute + (vsx_extract__load): Allow vec_extract of integer types with a + constant element number to load into vector registers. Allow splitting + before register allocation. -==================== Branch work119, patch #21 ==================== +==================== Branch work119, patch #41 ==================== -Enhance vec_extract from int memory with constant element numbers. +Combine vec_extract of V4SF with DF convert. This patch adds a combine insn that merges loading up a vec_extract of V4SFmode where the element number is constant combined with a conversion to DFmode. -Without this patch, the compiler would load the value into a GPR register and -then do a direct move if it needs the value in a vector register. 2023-04-18 Michael Meissner @@ -74,9 +68,28 @@ gcc/ * config/rs6000/vsx.md (vsx_extract_v4sf_to_df_load): New insn. -gcc/testsuite/ +==================== Branch work119, patch #40 ==================== + +Allow vec_extract support functions to be called before reload. + +2023-04-19 Michael Meissner + +gcc/ + + * config/rs6000/rs6000.cc (get_vector_offset): Allow being called before + register allocation. + (adjust_vec_address_pcrel): Likewise. + (rs6000_adjust_vec_address): Likewise. - * gcc.target/powerpc/vec-extract-mem-int-1.c: New test. +==================== Branch work119, patch #33 was reverted ==================== + +==================== Branch work119, patch #32 was reverted ==================== + +==================== Branch work119, patch #31 was reverted ==================== + +==================== Branch work119, patch #30 was reverted ==================== + +==================== Branch work119, patch #23 was reverted ==================== ==================== Branch work119, patch #22 ==================== @@ -88,7 +101,7 @@ In doing other work, I noticed that there was an insn: Which did not have an iterator. I removed the useless . -2023-04-17 Michael Meissner +2023-04-18 Michael Meissner gcc/