From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11739 invoked by alias); 23 Aug 2002 07:36:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 11719 invoked by uid 71); 23 Aug 2002 07:36:01 -0000 Resent-Date: 23 Aug 2002 07:36:01 -0000 Resent-Message-ID: <20020823073601.11718.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, shawnw@speakeasy.org Received: (qmail 11240 invoked from network); 23 Aug 2002 07:33:58 -0000 Received: from unknown (HELO speakeasy.org) (64.81.17.141) by sources.redhat.com with SMTP; 23 Aug 2002 07:33:58 -0000 Received: (from shawnw@localhost) by speakeasy.org (8.10.1/8.10.1) id g7N7Xrd02112; Fri, 23 Aug 2002 00:33:53 -0700 Message-Id: <200208230733.g7N7Xrd02112@speakeasy.org> Date: Fri, 23 Aug 2002 02:46:00 -0000 From: shawnw@speakeasy.org To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: target/7693: Typo in i386 mmintrin.h header X-SW-Source: 2002-08/txt/msg00484.txt.bz2 List-Id: >Number: 7693 >Category: target >Synopsis: Typo in i386 mmintrin.h header >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Aug 23 00:36:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Shawn Wagner >Release: 3.2 >Organization: >Environment: System: Linux sherlock.localdomain 2.2.21 #1 Sun Aug 18 11:20:19 PDT 2002 i686 unknown Architecture: athlon host: athlon-pc-linux-gnu build: athlon-pc-linux-gnu target: athlon-pc-linux-gnu configured with: ../gcc-3.2/configure --prefix=/usr/local --target=athlon-pc-linux-gnu --with-arch=athlon --enable-threads=posix --disable-nls --with-system-zlib --enable-languages=c,c++,f77 --enable-__cxa_atexit --enable-shared >Description: The functions in gcc/config/i386/mmintrin.h for shifting 64 bit values don't match the names in the Intel x86 instruction set documentation, or what the Intel compiler accepts. In all 4 relevant functions, the pi64 extension in the gcc mmintrin.h names should be si64. For example, _mm_sll_pi64() should be _mm_sll_si64(). Problem is in 3.2 and current cvs HEAD. >How-To-Repeat: >Fix: --- gcc/config/i386/mmintrin.h.orig Fri Aug 23 00:06:52 2002 +++ gcc/config/i386/mmintrin.h Fri Aug 23 00:10:40 2002 @@ -293,13 +293,13 @@ /* Shift the 64-bit value in M left by COUNT. */ static __inline __m64 -_mm_sll_pi64 (__m64 __m, __m64 __count) +_mm_sll_si64 (__m64 __m, __m64 __count) { return (__m64) __builtin_ia32_psllq (__m, __count); } static __inline __m64 -_mm_slli_pi64 (__m64 __m, int __count) +_mm_slli_si64 (__m64 __m, int __count) { return (__m64) __builtin_ia32_psllq (__m, __count); } @@ -358,13 +358,13 @@ /* Shift the 64-bit value in M left by COUNT; shift in zeros. */ static __inline __m64 -_mm_srl_pi64 (__m64 __m, __m64 __count) +_mm_srl_si64 (__m64 __m, __m64 __count) { return (__m64) __builtin_ia32_psrlq (__m, __count); } static __inline __m64 -_mm_srli_pi64 (__m64 __m, int __count) +_mm_srli_si64 (__m64 __m, int __count) { return (__m64) __builtin_ia32_psrlq (__m, __count); } >Release-Note: >Audit-Trail: >Unformatted: