From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7835) id B24BB3858405; Thu, 21 Oct 2021 15:54:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B24BB3858405 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wright To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-4613] aarch64: Remove redundant struct type definitions in arm_neon.h X-Act-Checkin: gcc X-Git-Author: Jonathan Wright X-Git-Refname: refs/heads/master X-Git-Oldrev: 2606dfea12dbe9692c9d576155e63bf3acebd1bf X-Git-Newrev: bdc42283bc7147bc01557dfab6a8c96bf31cf25a Message-Id: <20211021155423.B24BB3858405@sourceware.org> Date: Thu, 21 Oct 2021 15:54:23 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2021 15:54:23 -0000 https://gcc.gnu.org/g:bdc42283bc7147bc01557dfab6a8c96bf31cf25a commit r12-4613-gbdc42283bc7147bc01557dfab6a8c96bf31cf25a Author: Jonathan Wright Date: Fri Oct 15 16:50:57 2021 +0100 aarch64: Remove redundant struct type definitions in arm_neon.h These vector type definitions are an artifact from the initial commit that added the AArch64 port. gcc/ChangeLog: 2021-10-15 Jonathan Wright * config/aarch64/arm_neon.h (__STRUCTN): Delete function macro and all invocations. Diff: --- gcc/config/aarch64/arm_neon.h | 86 ------------------------------------------- 1 file changed, 86 deletions(-) diff --git a/gcc/config/aarch64/arm_neon.h b/gcc/config/aarch64/arm_neon.h index 1768c6b56c1..99fe293ef0e 100644 --- a/gcc/config/aarch64/arm_neon.h +++ b/gcc/config/aarch64/arm_neon.h @@ -9120,92 +9120,6 @@ vtstq_p64 (poly64x2_t __a, poly64x2_t __b) != __AARCH64_INT64_C (0)); } -/* End of temporary inline asm implementations. */ - -/* Start of temporary inline asm for vldn, vstn and friends. */ - -/* Create struct element types for duplicating loads. - - Create 2 element structures of: - - +------+----+----+----+----+ - | | 8 | 16 | 32 | 64 | - +------+----+----+----+----+ - |int | Y | Y | N | N | - +------+----+----+----+----+ - |uint | Y | Y | N | N | - +------+----+----+----+----+ - |float | - | Y | N | N | - +------+----+----+----+----+ - |poly | Y | Y | - | - | - +------+----+----+----+----+ - - Create 3 element structures of: - - +------+----+----+----+----+ - | | 8 | 16 | 32 | 64 | - +------+----+----+----+----+ - |int | Y | Y | Y | Y | - +------+----+----+----+----+ - |uint | Y | Y | Y | Y | - +------+----+----+----+----+ - |float | - | Y | Y | Y | - +------+----+----+----+----+ - |poly | Y | Y | - | - | - +------+----+----+----+----+ - - Create 4 element structures of: - - +------+----+----+----+----+ - | | 8 | 16 | 32 | 64 | - +------+----+----+----+----+ - |int | Y | N | N | Y | - +------+----+----+----+----+ - |uint | Y | N | N | Y | - +------+----+----+----+----+ - |float | - | N | N | Y | - +------+----+----+----+----+ - |poly | Y | N | - | - | - +------+----+----+----+----+ - - This is required for casting memory reference. */ -#define __STRUCTN(t, sz, nelem) \ - typedef struct t ## sz ## x ## nelem ## _t { \ - t ## sz ## _t val[nelem]; \ - } t ## sz ## x ## nelem ## _t; - -/* 2-element structs. */ -__STRUCTN (int, 8, 2) -__STRUCTN (int, 16, 2) -__STRUCTN (uint, 8, 2) -__STRUCTN (uint, 16, 2) -__STRUCTN (float, 16, 2) -__STRUCTN (poly, 8, 2) -__STRUCTN (poly, 16, 2) -/* 3-element structs. */ -__STRUCTN (int, 8, 3) -__STRUCTN (int, 16, 3) -__STRUCTN (int, 32, 3) -__STRUCTN (int, 64, 3) -__STRUCTN (uint, 8, 3) -__STRUCTN (uint, 16, 3) -__STRUCTN (uint, 32, 3) -__STRUCTN (uint, 64, 3) -__STRUCTN (float, 16, 3) -__STRUCTN (float, 32, 3) -__STRUCTN (float, 64, 3) -__STRUCTN (poly, 8, 3) -__STRUCTN (poly, 16, 3) -/* 4-element structs. */ -__STRUCTN (int, 8, 4) -__STRUCTN (int, 64, 4) -__STRUCTN (uint, 8, 4) -__STRUCTN (uint, 64, 4) -__STRUCTN (poly, 8, 4) -__STRUCTN (float, 64, 4) -#undef __STRUCTN - - __extension__ extern __inline void __attribute__ ((__always_inline__, __gnu_inline__, __artificial__)) vst2_lane_f16 (float16_t *__ptr, float16x4x2_t __val, const int __lane)