From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 13E0A385B532; Wed, 27 Mar 2024 13:38:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 13E0A385B532 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711546738; bh=XeVMeRVWLwAWfLaSRu7aP7H8Gy6yfbuD7P2ajw0GBP8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eVUZ8ingi5y0cdck2caCk+VoqJz19Ublk3XvRqbDCMox1KoDrzI7FOlp6Uw5P1ZZM Ygk3bDnCo8jSFQdtzw/xJ8eivJZhFwOiSu5YNYiUXNR06i0AeRX/IoVLdC3Bm9Elzq oKpbMiwZcLv6Zz+OxyYpCW6upmpdu4pTjqv1RcV8= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/53192] Incorrect arguments to AVX2's gather intrinsics Date: Wed, 27 Mar 2024 13:38:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: diagnostic, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53192 --- Comment #8 from Jakub Jelinek --- Looking at other intrinsics with {,unsigned }__int64{, const} * arguments, I see void _mm_maskstore_epi64 (__int64* mem_addr, __m128i mask, __m128i a) void _mm256_maskstore_epi64 (__int64* mem_addr, __m256i mask, __m256i a) unsigned __int64 _mulx_u64 (unsigned __int64 a, unsigned __int64 b, unsigned __int64* hi) int _rdrand64_step (unsigned __int64* val) unsigned char _addcarry_u64 (unsigned char c_in, unsigned __int64 a, unsign= ed __int64 b, unsigned __int64 * out) unsigned char _addcarryx_u64 (unsigned char c_in, unsigned __int64 a, unsig= ned __int64 b, unsigned __int64 * out) int _rdseed64_step (unsigned __int64 * val) unsigned char _subborrow_u64 (unsigned char c_in, unsigned __int64 a, unsig= ned __int64 b, unsigned __int64 * out) __m128i _mm_i32gather_epi64 (__int64 const* base_addr, __m128i vindex, const int scale) __m128i _mm_mask_i32gather_epi64 (__m128i src, __int64 const* base_addr, __m128i vindex, __m128i mask, const int scale) __m256i _mm256_i32gather_epi64 (__int64 const* base_addr, __m128i vindex, c= onst int scale) __m256i _mm256_mask_i32gather_epi64 (__m256i src, __int64 const* base_addr, __m128i vindex, __m256i mask, const int scale) __m128i _mm_i64gather_epi64 (__int64 const* base_addr, __m128i vindex, const int scale) __m128i _mm_mask_i64gather_epi64 (__m128i src, __int64 const* base_addr, __m128i vindex, __m128i mask, const int scale) __m256i _mm256_i64gather_epi64 (__int64 const* base_addr, __m256i vindex, c= onst int scale) __m256i _mm256_mask_i64gather_epi64 (__m256i src, __int64 const* base_addr, __m256i vindex, __m256i mask, const int scale) __m128i _mm_maskload_epi64 (__int64 const* mem_addr, __m128i mask) __m256i _mm256_maskload_epi64 (__int64 const* mem_addr, __m256i mask) in the intrinsic guide. And both GCC and LLVM consistently use long long/unsigned long long pointers for all; of those. And that type isn't predefined by either of the compilers, so I'd just say that the hypothetical __int64/unsigned __int64 is long long/unsigned long long on Linux, not int64_t/uint64_t.=