From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22347 invoked by alias); 8 Aug 2002 12:06: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 22327 invoked by uid 71); 8 Aug 2002 12:06:01 -0000 Resent-Date: 8 Aug 2002 12:06:01 -0000 Resent-Message-ID: <20020808120601.22326.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, eyal@mobileye.com Received: (qmail 22244 invoked by uid 61); 8 Aug 2002 12:05:22 -0000 Message-Id: <20020808120522.22243.qmail@sources.redhat.com> Date: Thu, 08 Aug 2002 05:16:00 -0000 From: eyal@mobileye.com Reply-To: eyal@mobileye.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/7542: compiling for powerpc Altivec X-SW-Source: 2002-08/txt/msg00165.txt.bz2 List-Id: >Number: 7542 >Category: c++ >Synopsis: compiling for powerpc Altivec >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Thu Aug 08 05:06:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: eyal@mobileye.com >Release: gcc-3.1 >Organization: >Environment: linux , powerpc >Description: I tried to compile Altivec code - and used vec_msum(__vector signed char c1, __vector unsigned char c2, __vector signed int i1) ... the compiler change this to the assembler code vmsumubm - which uses 2 UNsigned char vectors instead of vmsummbm which uses one SIGNES and one UNSIGND !! this bug causes the signed operand to be treated as unsigned !! >How-To-Repeat: the following compilation: g++ -S -Wall -pedantic -ansi -Wno-long-long -DNDEBUG -O6 -DALTIVEC -maltivec testZevel.cpp the g++ version is : Reading specs from /opt/gcc-3.1/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs Configured with: ../gcc-3.1/configure --prefix=/opt/gcc-3.1 --enable-shared --enable-threads --enable-languages=c,c++ Thread model: posix gcc version 3.1 >Fix: need to be find fast so if you have something please let me know !!! >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="testZevel.cpp" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="testZevel.cpp" I2luY2x1ZGUgPGFsdGl2ZWMuaD4KCl9fdmVjdG9yIHNpZ25lZCBpbnQgdGVzdFpldmVsKCkKeyAg ICAKICBfX3ZlY3RvciBzaWduZWQgY2hhciB2c2MxID0gey0xNiwtMTUsLTE0LC0xMywtMTIsLTEx LC0xMCwtOSwtOCwtNywtNiwtNSwtNCwtMywtMiwtMX07CiAgX192ZWN0b3IgdW5zaWduZWQgY2hh ciB2dWMxID0gezEsMiwzLDQsNSw2LDcsOCw5LDEwLDExLDEyLDEzLDE0LDE1LDE2fTsKICAKICAg IAogIF9fdmVjdG9yIHNpZ25lZCBpbnQgdnNpMSA9IHswLDAsMCwwfTsKICBfX3ZlY3RvciBzaWdu ZWQgaW50IHZzaTI7CiAgCiAgdnNpMiA9IHZlY19tc3VtKHZzYzEsdnVjMSx2c2kxKTsKCiAgcmV0 dXJuIHZzaTI7CiAgICAKfQogIAo=